I have a Tie::IxHash object that has been initialized as follows:
my $ixh = Tie::IxHash->new('a' => undef, 'b' => undef, 'c' => undef);
and later on I want to assign a list of values qw/1 2 3/
to those three keys. I can't seem to find a way to do that in one statement.
(The reason I'm assigning keys in one step, and values in another, is that this is part of an API and the user may wish, instead, to add values using a (key, value) interface.)
I tried $ixh->Values(0..2) = qw/1 2 3/;
but that method doesn't like being on the left hand side.
Of course, I could write a loop using $ixh->Replace(index, value), but I wondered if there were a "bulk" method that I've overlooked.