eof argument list context is broken #15707
Created by @mauke
$ perl -wE 'say prototype "CORE::eof"'
eof claims to take a single (optional) scalar argument.
$ perl -wE 'sub foo (;*); foo("a", "b", "c")'
This is what happens when you use the same prototype on a sub.
$ perl -wE 'say eof("a", "b", "c")'
This is what happens when you try it with eof: Instead of erroring out (too
$ perl -MO=Deparse -e 'eof(())'
... unless the argument is (). Instead of evaluating it in scalar context (and
On Sat, 12 Nov 2016 15:27:19 GMT, mauke- wrote:
Is this problem similar to that reported by sprout in https://rt-archive.perl.org/perl5/Ticket/Display.html?id=93992?