Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Accessing Subroutine Arguments

by vek (Prior)
on Apr 03, 2002 at 23:58 UTC ( #156497=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    do_stuff($foo, $bar, $foo_too, $bar_too, $foo_who_poo);
    
    sub do_stuff {
       my ($foo, $bar, $foo_too, $bar_too, $foo_who_poo) = @_;
    }
    
  2. or download this
    do_stuff(one=>$foo, two=>$bar, three=>$foo_too, four=>$foo_who_poo);
    
    sub do_stuff {
       my %args = @_;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-12-27 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls