No such thing as a small change | |
PerlMonks |
Re^2: Convert from awk to perlby philipbailey (Curate) |
on Jul 19, 2008 at 11:50 UTC ( [id://698803]=note: print w/replies, xml ) | Need Help?? |
That won't quite work--braces, {}, are always required for blocks in Perl. So, for instance, the first "if" statement would need to be written as:
Update: Or to be a bit more "Perlish" you could write: Update 2: Correction of string comparisons, as per Anonymous Monk.
In Section
Seekers of Perl Wisdom
|
|