![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Why does eof have a prototype?by LanX (Saint) |
on Aug 07, 2022 at 16:57 UTC ( [id://11145999]=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi I'm trying to parse the usage infos in the pod of perlfunc to create code snippets, and am getting surprised by idiosyncrasies. For instance is eof magic when called with empty brackets eof() but has a prototype
See also perlsub > Note however that some built-ins can't have their syntax expressed by a prototype (such as system or chomp). If you override them you won't be able to fully mimic their original syntax.
Cheers Rolf
Back to
Seekers of Perl Wisdom
|
|