tie my %ixh, Tie::IxHash::, ('a' => undef, 'b' => undef, 'c' => undef);
@ixh{qw( a b c )} = (1, 2, 3);
But it's not really a bulk store; it will result in three calls to STORE
.
To access Tie::IxHash specific features (Replace
and Reorder
), you can get the underlying object using tied
.
tied(%ixh)->Reorder(...)
The underlying object is also returned by tie
.
my $ixh = tie my %ixh, Tie::IxHash::, ...;