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
$ perl print prototype 'CORE::eof',"\n" __END__ ;* $
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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why does eof have a prototype?
by haukex (Archbishop) on Aug 07, 2022 at 19:13 UTC | |
by LanX (Sage) on Aug 07, 2022 at 20:21 UTC | |
by haukex (Archbishop) on Aug 07, 2022 at 21:33 UTC | |
by LanX (Sage) on Aug 07, 2022 at 21:49 UTC | |
Re: Why does eof have a prototype?
by ikegami (Patriarch) on Aug 08, 2022 at 18:08 UTC | |
by Anonymous Monk on Aug 08, 2022 at 19:04 UTC | |
by ikegami (Patriarch) on Aug 09, 2022 at 13:11 UTC | |
by LanX (Sage) on Aug 09, 2022 at 17:59 UTC |
Back to
Seekers of Perl Wisdom