http://qs321.pair.com?node_id=161481


in reply to Shift versus Sanity

I concur with Juerd. Sometimes i will obfuscate, but only if it is for me and me only.

How many times have you been bitten with this:

sub foo { my $foo = shift; } # and then you decide to add another parameter: sub foo { my ($foo,$bar) = shift; }
I find it better to always use @_ to prevent those annoying mistakes:
sub foo { my ($foo) = @_; }

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)