I think maybe this is a trick question...
How do you pass the contents of a two-element array to an unprototyped function which takes two scalar arguments?
some_func( @two_elements );How do you pass the contents of a two-element array to a $$ prototyped function?
some_func( $two_elements[0], $two_elements[1] );That looks less generic to me, as it forces callee details to the caller side.
In reply to Re^6: How do I prototype a function with a varying number of arguments?
by chromatic
in thread How do I prototype a function with a varying number of arguments?
by lyapunov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |