develooper Front page | perl.perl5.porters | Postings from January 2001

Re: hash keys (Re: Ideas for papers)

Thread Previous | Thread Next
Nick Ing-Simmons
January 18, 2001 08:04
Re: hash keys (Re: Ideas for papers)
Message ID:
Nicholas Clark <> writes:
>However, I'll try experimenting with whether the const PVIV in:
>perl -MO=Terse -e '$foo{bar} = baz'
>LISTOP (0x816cd18) leave
>    OP (0x80fb338) enter
>    COP (0x80fb2f8) nextstate
>    BINOP (0x816ccf0) sassign
>        SVOP (0x816ccd0) const  PV (0x80fc520) "baz"
>        BINOP (0x81001a8) helem
>            UNOP (0x8100648) rv2hv
>                SVOP (0x8164640) gv  GV (0x80ff7e0) *foo
>            SVOP (0x8100188) const  PVIV (0x80f5288) "bar"
>should be a shared key string (and what speeds up and what slows down)
>might be interesting. [first I have to work out how to do this...]

The reason it is a PVIV is because I already did that... 
see OP_HELEM in Perl_peep() of op.c - someone else has made it UTF8
aware in some manner too.

Nick Ing-Simmons <>
Via, but not speaking for: Texas Instruments Ltd.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About