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
strict doesn't complain when sort quotes bareword argument #2305
Comments
From @pjscottIf a bareword argument is given to sort, strict 'subs' doesn't complain: $ perl -Mstrict -wle 'print sort foo' Just so you know that the bareword interpretation is being applied: $ perl -MO=Deparse -wle 'print sort foo' print sort('foo'); -e syntax OK Happens on perl 5.6.0 & 5.005_03 on Linux, and Perl 5.004_04 on Solaris 2.5.1. |
From @AbigailOn Thu, Aug 03, 2000 at 09:55:38AM -0700, Peter Scott wrote:
And this is probably related: $ perl -Mstrict -e 'exec ls' | wc -l exec 'ls'; -e syntax OK However, in this case, -w *does* complain. $ perl -Mstrict -we 'exec ls' | wc -l Abigail |
From @gannett-ggreerThe "exec" part mentioned has been fixed in the tickets linked, however -- |
From @jkeenanOn Thu Aug 03 02:55:42 2000, Peter@PSDT.com wrote:
And is still present in Perl 5.14.2: ##### $ perl -Mstrict -wle 'print sort foo' $ perl -Mstrict -wlE 'say sort foo' ##### |
From @cpansproutOn Fri Apr 20 18:21:28 2012, jkeenan wrote:
use constant{Just=>another=>Perl=>hacker=>};$\=",\n"; -- Father Chrysostomos |
Migrated from rt.perl.org#3629 (status was 'open')
Searchable as RT3629$
The text was updated successfully, but these errors were encountered: