in reply to Re^2: How to eliminate warning message on hash value?
in thread How to eliminate warning message on hash value?
As far as $$db{CurrentKey}, I figure that $db->{CurrentKey} is better although the other syntax is allowed.
As to why the OP did this, I'm not quite sure. Passing a reference to a scalar is usually not necessary because Perl can return multiple values in a list. Normally if I modify your input scalar, I return it back as a modified value in a list. That is different than passing me a reference to an array where that might be some huge thing.
|
|---|