![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: Prototype like sort()?by LanX (Cardinal) |
on Feb 01, 2018 at 17:13 UTC ( #1208260=note: print w/replies, xml ) | Need Help?? |
Nice! to elaborate further, the trick you are using is that prepending & to a sub let's the parser ignore the prototype. > perlsub: Not only does the & form make the argument list optional, it also disables any prototype checking on arguments you do provide. This is partly for historical reasons, and partly for having a convenient way to cheat if you know what you're doing.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|