Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $search = "home"; my %name = ( 'home' => ['main', '100 - Main Street'], 'rent' => ['travel', 'Other State'], ); print $name->{$search}[0][0];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Print value from hash
by davido (Cardinal) on Sep 25, 2015 at 19:00 UTC | |
Re: Print value from hash
by mhearse (Chaplain) on Sep 25, 2015 at 19:01 UTC | |
by stevieb (Canon) on Sep 25, 2015 at 22:44 UTC | |
Re: Print value from hash ( Data::Diver)
by Anonymous Monk on Sep 25, 2015 at 23:28 UTC |