![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: One linerby Roy Johnson (Monsignor) |
on Jun 02, 2009 at 15:21 UTC ( #767633=note: print w/replies, xml ) | Need Help?? |
You need to tell it to read the file all at once instead of line-by-line. Then you need to adjust your regex to do multiline matching (and not to be so greedy as to eat the numbers):
Update: as ikegami notes, paragraph mode would also be suitable. The shorthand for that is -00 (those are zeroes). See perlrun Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|