Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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
Replies are listed 'Best First'.
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 contemplating the Monastery: (7)
As of 2015-07-08 02:19 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 (93 votes), past polls