On May 14, Paul Cotter said:
>next if /^#?$/; # skip empty lines and comment lines
No. I had a bad regex weekend (as Paul could personally attest to).
The author asked the same question.
next if /^(#|$)/;
will work, as well
next if /^#/ or /^$/;
I'm sorry about the mixup. I had originally had two regexes, and then I
concatenated them, terribly incorrectly.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734