in reply to Having multiple values for a Hash key
Or an array within the hashmy %table = ( optimal => 'good', failed => {missing => 1, bad => 1}, ); print $table{failed}{missing};
my %table = ( optimal => 'good', failed => [qw(missing bad)], ); print (grep {$_ eq 'missing'} @{$table{failed}}) ? 'missing' : 'ok';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Having multiple values for a Hash key
by justkar4u (Novice) on May 02, 2011 at 17:17 UTC |