in reply to match and remove across multiple lines
I couldn't get Enlil's code to work until I changed:
print unless ( /^Header1$/ .. /^END LIST$/ );to
print unless ( /Header1/ .. /END LIST/ );As originally coded every line was printed.
Update: I did get Enlil's code to work on Solaris 5.9. The only machine it did not work on was the one with Mandrake Linux on it. I have no explanation for that.
xenchu
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: match and remove across multiple lines
by Anonymous Monk on Jan 28, 2006 at 03:15 UTC |
In Section
Seekers of Perl Wisdom