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
surprising precedence issue: sort f()->@* #16665
Comments
From jeremyhetzler@gmail.comCreated by jeremyhetzler@gmail.comIf sort() is called without parens and passed a function call with postfix Example: $ /bin/perl -we'sub f {[1,2,3]}; print sort f()->@*' Expected behavior would be the same as: $ /bin/perl -we'sub f {[1,2,3]}; print sort @{f()}' From perlref: Postfix dereference should work in all circumstances where block Suggestions: - Change the parser so that "sort f()->@*" is equivalent to "sort @{f()}". - If the parser can't be changed, issue a warning in this situation Thanks! Perl Info
|
From @GrinnzProbably related to: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=133178, -Dan On Fri, Aug 24, 2018 at 11:04 AM Jeremy Hetzler (via RT) <
|
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#133464 (status was 'open')
Searchable as RT133464$
The text was updated successfully, but these errors were encountered: