How to handle "\" indicating next line



Hi all,
I am writing a code that would check line by line content of a line before
processing it. Problem occurs when there are lines that has character "\"
indicating a new line. For example

preprocessor http_inspect: global \
iis_unicode_map unicode.map 1252

When that happen, my code should be able to grab the whole phrase. My
current code would only capture up to "global \". Thanks in advance.

if (open (INFILE,"$snort_file")) {

while (<INFILE>) {
my $line = $_;
if ($line !~ /^[[:space:]]*#.*$/) { # handle lines start with #
if (/\S/) { # handle empty lines
my @field = split;

} elsif ($field[0] eq "preprocessor") {
get_preprocessor ($line);
}


Relevant Pages

  • Re: Need Birth/Death reference 1940s - JACKSON
    ... >I maintain that the writing of the phrase "should of" is done by people ... "should've" which is why they were demanding that I did not say "should ... Prev by Date: ...
    (soc.genealogy.britain)
  • Re: In memory of New Orleans
    ... opinion of the person writing that phrase?!? ... which part of "know" in the phrase "it's good to know that I have ... Prev by Date: ...
    (rec.arts.sf.written)
  • Re: Need recommendations: bad historical romances
    ... Bring this back to writing... ... Over here the phrase would be 'I couldn't care less...' ... Prev by Date: ...
    (rec.arts.sf.composition)
  • Re: rip erik naggum
    ... Erik Naggum And The Phrase RIP ... Carlos wrote to me about the social origin of RIP: ... on writing this, i looked up Wikipediahttp://en.wikipedia.org/wiki/Requiescat_in_pace ... becauseErikis, perhaps, best known as a Troll. ...
    (comp.lang.lisp)
  • Re: neutralizing pivot tones
    ... aspect of writing - connecting distinct ideas in a meaningful manner. ... accompaniment idea at the end of a phrase that becomes the accompaniment for ... the next phrase - similar idea. ... understood by cnotemporary listeners, but modern listeners don't get it in ...
    (rec.music.theory)