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

[perl #117299] keys are readonly in perl 5.14.2!

Thread Next
From:
yves orton
Date:
March 22, 2013 16:42
Subject:
[perl #117299] keys are readonly in perl 5.14.2!
Message ID:
rt-3.6.HEAD-28177-1363970541-1749.117299-75-0@perl.org
# New Ticket Created by  yves orton 
# Please include the string:  [perl #117299]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117299 >


I consider this a serious bug in 5.14

$ perl5.14.2 -MDevel::Peek -le'print $]; my %hash=("A".."D"); @x= keys
%hash; Dump($x[0]);'
5.014002
SV = PV(0x1ace1e0) at 0x1ae27f0
  REFCNT = 1
  FLAGS = (POK,FAKE,READONLY,pPOK)
  PV = 0x1af3290 "A"
  CUR = 1
  LEN = 0

So why would a COPY of a key be READONLY?

In blead:

$ ./perl -Ilib -MDevel::Peek -le'print $]; my %hash=("A".."D"); @x=
keys %hash; Dump($x[0]);'
5.017010
SV = PV(0xdf5bd0) at 0xe12398
  REFCNT = 1
  FLAGS = (POK,IsCOW,pPOK)
  PV = 0xe159e0 "C"
  CUR = 1
  LEN = 0

Is anyone familiar with this issue? Should I file a ticket?

Yves




-- 
perl -Mre=debug -e "/just|another|perl|hacker/"


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