You forgot the 's' in the Values method. Also note that by default is returns an array, but it can return a scalar if desired
use strict; use warnings; my $r = new Tie::IxHash(); $r->Push('a' => 1); print "The key a in my hash has value ", $r->Values('a'), "\n";
I've run this code and the output is exactly what you expect.
In reply to Re: get one value from Tie::IxHash
by Sinistral
in thread get one value from Tie::IxHash
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |