Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Searching hashes of hashes ...

by lorn (Monk)
on Oct 15, 2007 at 19:22 UTC ( [id://645008]=note: print w/replies, xml ) Need Help??


in reply to Searching hashes of hashes ...

I did not understand your indention, you need to use tags in your messages ;)

i was try to understand your hash and i stoped here

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my %hash = ( 'record' => { 'employees' => { 'foo' => 'lorn', 'bar' => 'perlmonks', 'quux' => 'lornlab', } } ); my $employees = $hash{record}->{employees}; foreach my $key ( keys %{ $employees } ) { if ( $key =~ /foo/ ) { print "$key - " , $employees->{$key}, "\n"; } if ( $key =~ /f\w{2}/ ) { print "$key - " , $employees->{$key}, "\n"; } }

....

after a little help, with hash of the Articuno said: "this guy need a database simple, or not, like http://www.sqlite.org/ "

Replies are listed 'Best First'.
Re^2: Searching hashes of hashes ...
by perlfan (Vicar) on Oct 15, 2007 at 21:46 UTC

Log In?
Username:
Password:

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

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

    No recent polls found