Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: shift vs @_

by Fletch (Chancellor)
on Oct 02, 2006 at 18:24 UTC ( #575923=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $foo = "bar";
    sub bad_example { $_[0] =~ s/a/oo/; $_[0] }
    print "\$foo: $foo\n";
    print "bad_example returns: ", bad_example( $foo ), "\n";
    print "uh oh, \$foo: $foo\n";
    
  2. or download this
    sub take_one_and_hash {
      my $one = shift;
    ...
    
      ## frobulate $one based on %hash . . .
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575923]
help
Chatterbox?
[marioroy]: Discipulus Hubris, that's not me :( :(, I do not know the reason, but was inspired years ago to do MCE. Back then made a promise that I would hang in there no matter the difficulties or hurdles along the way. This is the journey that is almost completed
[choroba]: software is never completed
[choroba]: becuase the hardware always changes beneath it, at least
[Discipulus]: yes i think I know a bit about you: if I would had the competence and the will to accomplish something like MCE.. i'd be running here and there with flags and t-shirt about.. ;=)
Lady_Aleena rolls over on the sofa, pulling a light blanket over her, and falls to sleep.
[Discipulus]: but world is fun beacause it is manifold
[Discipulus]: anyway congratulations marioroy imho your work is very good and useful

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-05-26 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?