There's more than one way to do things | |
PerlMonks |
Re^5: "exists $hash{key}" is slower than "$hash{key}"by choroba (Cardinal) |
on Jan 07, 2020 at 09:53 UTC ( [id://11111114]=note: print w/replies, xml ) | Need Help?? |
> The Benchmark module is eventually running the code's text thru eval , but inside it's own scope. Not only that, it also turns off strict, so Perl doesn't tell you the hash you're trying to access doesn't exist.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Meditations
|
|