develooper Front page | perl.perl5.porters | Postings from October 2013

[perl #119797] lvalue sub shows "Bizarre copy of ARRAY in block exit" in very specific case.

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
October 23, 2013 13:15
Subject:
[perl #119797] lvalue sub shows "Bizarre copy of ARRAY in block exit" in very specific case.
Message ID:
rt-3.6.HEAD-26210-1382534128-824.119797-15-0@perl.org
On Wed Oct 23 06:08:23 2013, sprout wrote:
> Notice that the rv2av has no M indicating modifiable context.

I misspoke.  What it normally gets is LVSUB:

$ ./perl -Ilib -MO=Concise,if119797 -e 'sub if119797 : lvalue {  @119797 }'
main::if119797:
4  <1> leavesublv[1 ref] K/REFC,1 ->(end)
-     <@> lineseq KP ->4
1        <;> nextstate(main 1 -e:1) v ->2
3        <1> rv2av[t1] K/LVSUB,1 ->4
2           <$> gv(*119797) s ->3

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119797

Thread Previous | Thread Next


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