http://www.perlmonks.org?node_id=917597


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