|
|
| more useful options | |
| PerlMonks |
Re: multi line regexby Happy-the-monk (Prior) |
| on Jan 09, 2006 at 14:39 UTC ( #521945=note: print w/ replies, xml ) | Need Help?? |
|
You read the file into an array of lines, then you compare single lines against something that suspiciously looks like a multi-line-structure. You probably have to slurp the whole file into the scalar and not use the for loop: my $entry = do { local $/; <INFO> }; # slurp the whole file To which Corion adds: Cheers, Sören
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||