I think I must be missing something obvious because retrieving a value from a Tie::IxHash seems awfully convoluted:
my $hash = Tie::IxHash->new; $hash->Push('one' => 1, 'two' => 2); my @indices = $hash->Indices('two'); my @results = $hash->Values(@indices);
It seems like I should be able to do my $value = $hash->Values('two'); but the documentation doesn't mention that syntax.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Retrieving a single value from a Tie::IxHash object by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |