in reply to Re: Prototype question
in thread Prototype question
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 }
--
Ronald Fischer <ynnor@mm.st>
Ronald Fischer <ynnor@mm.st>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Prototype question
by CountZero (Bishop) on Sep 05, 2012 at 13:18 UTC |
In Section
Seekers of Perl Wisdom