Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: &&= vivify keys?

by sundialsvc4 (Abbot)
on Apr 18, 2012 at 11:23 UTC ( [id://965698]=note: print w/replies, xml ) Need Help??


in reply to Re: &&= vivify keys?
in thread &&= vivify keys?

It has been my experience that “tied hashes” don’t necessarily work as ordinary true hashes do.   I don’t profess to know the perlguts of it, and it seems to be somewhat implementation-dependent.

My approach in any case would simply be to test whether the key exists or not, with an if-statement.   That should work in every case and at the same time be perfectly clear.

Replies are listed 'Best First'.
Re^3: &&= vivify keys?
by Your Mother (Archbishop) on Mar 30, 2018 at 22:14 UTC

    I know it's many years late but I would like to know exactly in what ways you have noticed tied hashes acting differently.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://965698]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-19 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found