results in:my $line = 'valid text blah blah # delete me and everything after poun +d # also this'; $line =~ s/#.*$//; print qq{"$line"\n};
I don't have an answer for your #2 question at the end."valid text blah blah "
In reply to Re: Simple way to skip spaces and # comments
by perlfan
in thread Simple way to skip spaces and # comments
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |