in reply to shouldn't this work?
to$line =~ s/^\*(.*)/!$1/ and print $line and next if $line;
And what purpose does the if modifier serve after some of your substitutions (and I guess the spurious open is a mis-paste)? I wonder what was wrong with the code examples in your previous node?print("!" . substr($line, 1)) and next if index($line, '*') == 0;
_________
broquaint
|
|---|