There's more than one way to do things | |
PerlMonks |
Re: Why use strict is good, and barewords are badby benizi (Hermit) |
on Apr 22, 2005 at 21:24 UTC ( [id://450585]=note: print w/replies, xml ) | Need Help?? |
While I like the clever solution to the problem at hand (barewords), I'm much happier that Perl chose the DWIMery of using a default argument of $_, e.g.: perl -Mstrict -lwe 'print for map oct, qw/077 777 034/' (63, 511, 28) vs. ("oct", "oct", "oct")
In Section
Meditations
|
|