Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Predefining sub Parameters

by techcode (Hermit)
on Jun 22, 2005 at 23:41 UTC ( #469244=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub_call ({ first => $first,
                second => \@second,
    ...
        # you are changing the original. Might not be what you want.
        # In that case, pass @second, not \@second to get a "local copy"
    }
    
  2. or download this
    sub_call ( first => $first,
               second => \@second,
    ...
    
        # $hash{first}, $hash{second}, $hash{third} hold values like above
    }