Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: How do I prototype a function with a varying number of arguments?

by JavaFan (Canon)
on Jul 30, 2011 at 10:01 UTC ( #917597=note: print w/ replies, xml ) Need Help??


in reply to Re^4: How do I prototype a function with a varying number of arguments?
in thread How do I prototype a function with a varying number of arguments?

How do you pass the elements of a two-item array to a function with the $$ prototype?
sub foo ($$) {...} my @array = (1, 2); &foo(@array);
;-)


Comment on Re^5: How do I prototype a function with a varying number of arguments?
Download Code
Re^6: How do I prototype a function with a varying number of arguments?
by ysth (Canon) on Aug 25, 2011 at 16:05 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-07-26 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls