Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

(jeffa) Re: Shift versus Sanity

by jeffa (Bishop)
on Apr 23, 2002 at 23:16 UTC ( #161481=note: print w/replies, xml ) Need Help??


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)

Replies are listed 'Best First'.
Re: (jeffa) Re: Shift versus Sanity
by crazyinsomniac (Prior) on Apr 24, 2002 at 01:25 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://161481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-12-03 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (50 votes). Check out past polls.

    Notices?