in reply to Re^5: "exists $hash{key}" is slower than "$hash{key}"
in thread "exists $hash{key}" is slower than "$hash{key}"

But %h is a lexical variable too, and the point of the exercise is to access that.

Replies are listed 'Best First'.
Re^7: "exists $hash{key}" is slower than "$hash{key}"
by swl (Prior) on Jan 08, 2020 at 23:52 UTC

    The point was to assess the relative difference exists $h{$k} vs $h{$k}, not the absolute speed. A few more details are in 11111212.

    Apologies for the confusion and/or lack of clarity.