in reply to Re: How to comment out lines in a text?
in thread How to comment out lines in a text?

Golf?
perl -pe'$_="#$_"if/^MYTAG\W/../^\);$/'<TAG
Hope you don't mind me using your regexes. ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) 2Re: How to comment out lines in a text?
by zengargoyle (Deacon) on Mar 23, 2002 at 01:03 UTC

    Not at all.....

    perl -pe's/^/#/ if/^MYTAG\W/../^\);$/'<TAG

    ;)

      very nice ....
      same time tomorrow? ;)