Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Shift versus Sanity (shift is not like assignment from @_)

by grinder (Bishop)
on Apr 24, 2002 at 18:15 UTC ( #161708=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my( $foo, $bar ) = @_;
    
  2. or download this
        my $foo = shift;
        my $bar = shift;
    
  3. or download this
    sub x {
      $_[0] =~ s/foo/bar/;
      $_[0];
    }
    print x('food'), "\n"; # does not work
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2020-12-05 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?