in reply to Re: Perl Syntax that we generally don't know or forget.
in thread Perl Syntax/resources that we generally don't know or forget.

I put this just as an example of use of (?:^|foo).

Actually the code to remove a comment line should be:

$str =~ s/(?:^|\n)[ \t]*#[^\r\n]*//gs ;
Thanks for the advice. ;-P

Graciliano M. P.
"Creativity is the expression of the liberty".