Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Testing Hash with empty value in HoH

by dorward (Curate)
on Jun 15, 2005 at 10:18 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-26 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found