while (<>) { print '#' if $_ ne $/; print; }
You may have some other conditions to apply, but you didn't mention them.
After Compline,
Zaxo
In reply to Re: match and edit block of text
by Zaxo
in thread match and edit block of text
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |