tbone has asked for the wisdom of the Perl Monks concerning the following question:
The hash looks like %employee = ( $email { Name => $foo, Address => $foo2, Telephone=> $foo3},); foreach my $email (keys %employee){ if ($email=~/$foo/i){ push (@found, \$employee{$email});} foreach my $emp (@found){ if ($emp->{'Name'}=~/$foo/i){ print $emp->{'Name'};}}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash reference
by jasonk (Parson) on Feb 13, 2003 at 19:47 UTC | |
|
Re: hash reference
by fuzzyping (Chaplain) on Feb 13, 2003 at 19:43 UTC | |
by tbone (Beadle) on Feb 13, 2003 at 19:47 UTC |