Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Predefining sub Parameters

by dynamo (Chaplain)
on Jun 22, 2005 at 17:25 UTC ( #469103=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub functionname {
        my ($string_param, $array_param_ref, $other_string_param) = @_;
        my @array_param = @$array_param_ref;
        # do something with parameters, return values
    }
    
  2. or download this
    sub functionname{
        my ($string_param, $other_string_param, @array_param) = @_;
        # do something with parameters, return values
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-09-16 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (157 votes), past polls