Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Need advice on hashes and methods

by BrianC (Acolyte)
on Aug 16, 2006 at 04:19 UTC ( [id://567599]=note: print w/replies, xml ) Need Help??


in reply to Need advice on hashes and methods

Another way:
my %where; map {$where{$_} = 1} keys %firsthash; map {$where{$_} += 10} keys %secondhash; foreach (keys %where) { print "$_: first list only\n" if $where{$_} == 1; print "$_: second list only\n" if $where{$_} == 10; }
Edited d/t typing too fast and not rereading. Thx injunjoel.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2024-03-28 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found