Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 examining the Monastery: (7)
As of 2015-07-05 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls