Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl: the Markov chain saw
 
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 meditating upon the Monastery: (6)
As of 2014-04-21 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (490 votes), past polls