XP is just a number | |
PerlMonks |
Re^3: Dereferencing in blessed objectby bliako (Monsignor) |
on Feb 26, 2021 at 12:25 UTC ( [id://11128827]=note: print w/replies, xml ) | Need Help?? |
$$vars{'test'} is a visual pain for me because of the split millisecond where I ask myself about precedence. OTH the -> in $vars->{'test'} dates back to at least C where is used in exactly the same way and context. Performance-wise I don't think there is a difference (OSX 10.13 and perl 5.28.3):
Or,
For benchmarks see also: https://stackoverflow.com/questions/18984323/how-expensive-is-it-to-dereference-an-array-ref-in-perl bw, bliako
In Section
Seekers of Perl Wisdom
|
|