Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(jeffa) Re: Shift versus Sanity

by jeffa (Bishop)
on Apr 23, 2002 at 23:16 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://161481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found