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


in reply to Re^2: Why does eof have a prototype?
in thread Why does eof have a prototype?

That certain operators (eof, open, etc.) have prototypes that aren't adequate for representing the syntax of the operator is the premise of the question.

For example,


Upd: Fixed accidental double negation.

Replies are listed 'Best First'.
Re^4: Why does eof have a prototype?
by LanX (Sage) on Aug 09, 2022 at 17:59 UTC
    Filehandles are still too voodoo for me, I hoped something like this could fix that problem...

    use constant STDERR => \*STDERR; use constant STDOUT => \*STDOUT;

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery