"be consistent" | |
PerlMonks |
Re^3: regex basicsby CountZero (Bishop) |
on Feb 02, 2015 at 13:12 UTC ( [id://1115287]=note: print w/replies, xml ) | Need Help?? |
Modern::Perl is indeed for more recent versions of Perl. I'm running Perl 5.18. You can safely delete it in this script and add use strict; use warnings; in its place. Those blank lines you see are mysterious. There shouldn't be any such lines as nothing is printed when a comment is found. !$_ /;\s+/ is invalid syntax and confused the Perl-interpreter hence the rather unhelpful error message. CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics
In Section
Seekers of Perl Wisdom
|
|