abhishes has asked for the wisdom of the Perl Monks concerning the following question:
if (length($line) != 0) { if (/^\/\// or /^\/\*/ or /^\*/) { $comment = $comment + 1; } else { print "$line\n"; $code = $code + 1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular experssion for starts with doesn't work
by sauoq (Abbot) on Sep 20, 2002 at 08:24 UTC | |
|
Re: Regular experssion for starts with doesn't work
by kabel (Chaplain) on Sep 20, 2002 at 05:33 UTC | |
by diotalevi (Canon) on Sep 20, 2002 at 05:54 UTC |