New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getc argument list context is broken #15708
Comments
From @maukeCreated by @mauke$ perl -wE 'say prototype "CORE::getc"' getc 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 getc("a", "b", "c")' This is what happens when you try it with getc: Instead of erroring out (too $ perl -MO=Deparse -e 'getc(())' ... unless the argument is (). Instead of evaluating it in scalar context (and This is especially weird because getc is supposed to default to STDIN, not Perl Info
|
From @jkeenanOn Sat, 12 Nov 2016 15:30:25 GMT, mauke- wrote:
Is this problem similar to that reported by sprout in https://rt-archive.perl.org/perl5/Ticket/Display.html?id=93992? -- |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgl.mai@web.de wrote:
Yes. It is in fact equivalent to what you get with foo(("a","b","c")). -zefram |
Migrated from rt.perl.org#130078 (status was 'open')
Searchable as RT130078$
The text was updated successfully, but these errors were encountered: