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);
|
---|
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 |
In Section
Seekers of Perl Wisdom