Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: perl 5.12 BSD portability (CPAN test result)...print

by chromatic (Archbishop)
on Mar 14, 2013 at 16:12 UTC ( #1023500=note: print w/replies, xml ) Need Help??


in reply to Re^4: perl 5.12 BSD portability (CPAN test result)...print
in thread perl 5.12 BSD portability (CPAN test result)...print

The parser knows about print as a keyword. It's been a special case as far back as I can remember (Perl 1?). You can look at it as an indirect method call from the language level, but the parser doesn't need heuristics because the grammar has a specific rule for the print $filehandle case.