develooper Front page | perl.perl5.porters | Postings from July 2009

Re: delete local $a[$idx] - delete local $h{$key}

Thread Previous
From:
Vincent Pit
Date:
July 25, 2009 15:12
Subject:
Re: delete local $a[$idx] - delete local $h{$key}
Message ID:
4A6B834B.9020205@profvince.com

> equivalent to "delete $a[$idx]; local $a[$idx]"
>   
The attentive reader will have corrected this to "local $a[$idx]; delete
$a[$idx]" by himself. Hopefully noone has read the first message yet. :)

> There are no changes to the grammar. The optree changes are minimal (now
> OP_DELETE also accepts OPpLVAL_INTRO). It works for (?:arrays|hashes)
> (?:references)? (?:subscripts|slices).
>   
And also for tied arrays and hashes. That's actually the reason the main
commit is so large.


Vincent.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About