in reply to Re^4: use 'local' modifier to hashref element
in thread use 'local' modifier to hashref element
Interestingly, the code: ... complains that you "Can't localize lexical variable @array", but it has no problem localizing $hash{foo}.
Because $hash{foo} is a scalar and it is localizing the value.
|
---|