Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^4: shift vs @_

by tomhukins (Curate)
on Oct 02, 2006 at 20:44 UTC ( #575952=note: print w/replies, xml ) Need Help??

in reply to Re^3: shift vs @_
in thread shift vs @_

Perhaps, but consider the starting point of one argument:
my( $foo, ) = @_;
compared to:
my $foo = shift;
I use the shift approach because it gives me a clean starting point and lets me extend my methods (or subroutines) easily. Having said that, I try to avoid extending public methods and prefer to create new methods when appropriate. But perhaps I'm drifting away from the original question a little..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575952]
[Discipulus]: only 2k xp to reach the worst monk ever!

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2018-03-23 19:28 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (296 votes). Check out past polls.