Actually the code to remove a comment line should be:
Thanks for the advice. ;-P$str =~ s/(?:^|\n)[ \t]*#[^\r\n]*//gs ;
Graciliano M. P.
"Creativity is the expression of the liberty".
In reply to Re: Re: Perl Syntax that we generally don't know or forget.
by gmpassos
in thread Perl Syntax/resources that we generally don't know or forget.
by gmpassos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |