Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Strange Hash related bug, keys are created by themselves!

by marioroy (Prior)
on Nov 03, 2016 at 17:46 UTC ( [id://1175246]=note: print w/replies, xml ) Need Help??


in reply to Strange Hash related bug, keys are created by themselves!

The following is another way when Autovivification is not desired.

if (exists $hash_ref->{$block} && !defined $hash_ref->{$block}->{$libN +ame}) { print "This is a test\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-26 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found