laziness, impatience, and hubris | |
PerlMonks |
Fun with Prototypesby haukex (Archbishop) |
on Jul 19, 2017 at 11:54 UTC ( [id://1195441]=perlmeditation: print w/replies, xml ) | Need Help?? |
Can you tell me:
Hint: Okay, it's a trick question, I'm trying to make a point about Prototypes - I didn't give enough information for you to answer it, and if you were already thinking of an answer, sorry but you're probably wrong. So here's the missing information:
Solution: 1. Parsing according to perl -MO=Deparse,-p (with some edits for clarity):
2. Output (again slightly edited, and without warnings):
See Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen. The code was inspired by merlyn's great node On Parsing Perl.
Back to
Meditations
|
|