Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Testing Hash with empty value in HoH

by Limbic~Region (Chancellor)
on Jun 15, 2005 at 12:40 UTC ( [id://466897]=note: print w/replies, xml ) Need Help??


in reply to Re: Testing Hash with empty value in HoH
in thread Testing Hash with empty value in HoH

salva,
I agree with what you have said and how you have used your code, but for clarity believe you should add in scalar context. It may not be obvious to someone unfamiliar with Perl's DWYMery that in list context you get the list of values and in scalar context you only get the count.

Cheers - L~R

  • Comment on Re^2: Testing Hash with empty value in HoH

Log In?
Username:
Password:

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

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

    No recent polls found