Why does eof have a prototype?by LanX (Sage)
|on Aug 07, 2022 at 16:57 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
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.