The stupid question is the question not asked | |
PerlMonks |
Re^2: Prototype questionby rovf (Priest) |
on Sep 05, 2012 at 12:54 UTC ( [id://991829]=note: print w/replies, xml ) | Need Help?? |
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.
-- Ronald Fischer <ynnor@mm.st>
In Section
Seekers of Perl Wisdom
|
|