Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Seeing if a hash has one arbitrary key

by Aristotle (Chancellor)
on Feb 19, 2003 at 01:15 UTC ( #236478=note: print w/ replies, xml ) Need Help??


in reply to Seeing if a hash has one arbitrary key

my @subvalues = values %{$h{$c}}; print "complicated" unless @subvalues == 1 and $subvalues[0] == 1;

Makeshifts last the longest.


Comment on Re: Seeing if a hash has one arbitrary key
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-09-21 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls