in reply to Re^3: Dereferencing in blessed object
in thread Dereferencing in blessed object
That would be surprsing, it's compiled to the same op-code.
C:\WINDOWS\System32>perl -MO=Deparse -e"$$x{key}" $x->{'key'}; -e syntax OK C:\WINDOWS\System32>perl -MO=Concise -e"$$x{key}" 4 <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter v ->2 2 <;> nextstate(main 1 -e:1) v:{ ->3 - <1> ex-helem vK/2 ->4 3 <+> multideref($x->{"key"}) vK ->4 - <0> ex-gv s ->3 -e syntax OK C:\WINDOWS\System32>perl -MO=Concise -e"$x->{key}" 4 <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter v ->2 2 <;> nextstate(main 1 -e:1) v:{ ->3 - <1> ex-helem vK/2 ->4 3 <+> multideref($x->{"key"}) vK ->4 - <0> ex-gv s ->3 -e syntax OK C:\WINDOWS\System32>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Dereferencing in blessed object
by bliako (Abbot) on Feb 26, 2021 at 13:31 UTC |