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
Better error message for push onto assignment #14703
Comments
From @epaCreated by @epaThis program has a typo in the last line: use warnings; The error message from perl is Not an ARRAY reference at t line 5. This must be because of the new feature whereby you can But still it's an unhappy series of events. Could anything be done to Of course, this works my @a; but this doesn't: push((@a = 5), 6); In fact, even what looks like a definite list assignment somehow gets my @a, @b; (This seems inconsistent with the general principle that you can use assignment Is it possible to just forbid assignments as the target of push? Perl Info
|
From @jkeenanOn Wed May 13 05:52:32 2015, eda@waniasset.com wrote:
When I run that code with 'use warnings' -- as you have typed it -- I am duly forewarned: ##### -- |
The RT System itself - Status changed from 'new' to 'open' |
From @epaThanks for trying to reproduce this. I didn't see any warning with 5.18. If auto-deref one day goes back to happening without warning, this bug will |
From @epaSince auto-deref was removed in 5.24, I think this bug has been superseded. |
From @jkeenanOn Fri, 09 Jun 2017 16:01:21 GMT, ed wrote:
Indeed. ##### { { { $ perl 125174-push-assignment.pl Thanks for following up on this. -- |
@jkeenan - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#125174 (status was 'rejected')
Searchable as RT125174$
The text was updated successfully, but these errors were encountered: