I know; however, if you want to use the "code block" syntax to call a function, you must define a prototype. At least Perl 5.8.8 (which I still have to use) does not provide an alternative.
My solution to my original problem was to use a cover function. Basically I define my function f without prototypes, and then add a function
to provide the ability to write codeblocks.sub g(&@) { &f }
In reply to Re^2: Prototype question
by rovf
in thread Prototype question
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |