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
Coredump when shortening an array during use #6874
Comments
From perl-5.8.0@ton.iguana.beCreated by perl-5.8.0@ton.iguana.beperl -wle '$a=@F[4,7]-=@F=3' Perl Info
|
From @rgsperl-5.8.0@ton.iguana.be (via RT) wrote:
Could someone explain why this is allowed at all ? $ ./perl -wle '@x=(1..5);@x[1,2]-=3;print for@x' $ ./perl -wle '@x=(1..5);@x-=3;print for@x' |
From @rgsGoing to answer my own question :
Hm, probably for compatibility with the (mistaken) use @x[2] -= 3; |
From @iabynOn Wed, Oct 29, 2003 at 09:58:02AM +0100, Rafael Garcia-Suarez wrote:
Surely its just the normal 'last element returned' behaviour of a list in $ perl5.8.1 -le'$a=1;$b=2;($a,$b)+=10; print "$a $b"' -- |
From Michael.Jacob@SCHERING.DE
Its not 'returned', its 'propagated'. It seems a list will return an alias So it's clear: 1.) find LVALUE fro left hand side Michael Jacob |
From @chipdudeAccording to Michael.Jacob@SCHERING.DE:
"Bob"dammit! Not another stack refcount bug! Sorry about that. It's just fricking irritating that the stack still |
From @smpeters
Well, recent changes have caught the coredump. Now, bleadperl is just
|
Migrated from rt.perl.org#24342 (status was 'open')
Searchable as RT24342$
The text was updated successfully, but these errors were encountered: