Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Wildcard for key in hash lookup to skip over level

by roboticus (Chancellor)
on Dec 04, 2012 at 17:38 UTC ( #1007128=note: print w/replies, xml ) Need Help??


in reply to Wildcard for key in hash lookup to skip over level

ZWcarp

There aren't any wildcards, but you can get a similar effect as the one you stated like this:

my $fl=0; for my $k (keys %{$Pos_overlap{$s[5]}) { ++$fl if exists $Pos_overlap{$s[5]}{$k}{$s[2]}; } if ($fl) {

Not as nice as one would like, but it's the best I can offer at this time.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007128]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-02-25 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (369 votes). Check out past polls.