Problems? Is your data what you think it is? | |
PerlMonks |
Re: Why isn't C<use strict> the default?by etcshadow (Priest) |
on Oct 28, 2004 at 04:04 UTC ( [id://403248]=note: print w/replies, xml ) | Need Help?? |
perl -lne 'END{print$x}$x+=$_'
Perl one liners are nice. Don't forget that, although perl is also an awesome fully-featured programming language, it's roots are as a command-line data-processing tool (ala sed, awk and even grep). Who wants to spend those extra characters in a -e? Don't get me wrong, I like strict in anything more than a few lines long, but I also write a lot of stuff that's less than a few lines long.
In Section
Meditations
|
|