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
In reply to Re: match and remove across multiple lines
by xenchu
in thread match and remove across multiple lines
by dr_jgbn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |