Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Testing Hash with empty value in HoH

by dorward (Curate)
on Jun 15, 2005 at 10:18 UTC ( #466856=note: print w/replies, xml ) Need Help??


in reply to Testing Hash with empty value in HoH

A reference to a hash, even an empty hash, is true. Try defreferencing it.

my $foo = {}; print "OK\n" if (scalar %{$foo});

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-01-17 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?