http://qs321.pair.com?node_id=11145999

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