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
<<>> operator introduction causes regression of behaviour of "readline" builtin. #14561
Comments
From @kentfredricPerl 5.20.9: perl -e 'while(readline){ print $_ }' 'echo insecure |' perl 5.20.0: perl -e 'while(readline){ print $_ }' 'echo insecure |' More over, deparsing this syntax ( and the <<>> syntax ) returns code that behaves differently to the syntax offered. perl -e 'while(readline){ print $_ }' 'echo insecure |' perl -MO=Deparse -e 'while(readline){ print $_ }' 'echo insecure |' perl -MO=Deparse -e 'while(<<>>){ print $_ }' 'echo hello |' perl -MO=Deparse -e 'while(<>){ print $_ }' 'echo hello |' perl -e 'while(defined($_ =<ARGV>)){ print $_ }' 'echo insecure |' Flags: Site configuration information for perl 5.21.9: Configured by kent at Wed Feb 11 00:16:37 NZDT 2015. Summary of my perl5 (revision 5 version 21 subversion 9) configuration: Locally applied patches: @INC for perl 5.21.9: Environment for perl 5.21.9: |
From @rgarciaOn 5 March 2015 at 14:28, Kent Fredric <perlbug-followup@perl.org> wrote:
Good catch. This should be fixed by 0f6f92e.
|
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123990 (status was 'resolved')
Searchable as RT123990$
The text was updated successfully, but these errors were encountered: