K
Konrad Eisele
Assigning multiple hash with one statement is done with:
@a{'a','b'} = (1,2);
but how can I do it if I want to access the hash through
previous dereferences:
---------------------------
use Data:umper;
@a = ({'a'=>1,'b'=>2});
$b = \@a;
$b->[0]->{'a','b'} = (100,1000);
print Dumper(\@a);
---------------------------
$b->[0]->{'a','b'} = (1,2) doesn't work here.
How can I force list context?
-- Konrad
@a{'a','b'} = (1,2);
but how can I do it if I want to access the hash through
previous dereferences:
---------------------------
use Data:umper;
@a = ({'a'=>1,'b'=>2});
$b = \@a;
$b->[0]->{'a','b'} = (100,1000);
print Dumper(\@a);
---------------------------
$b->[0]->{'a','b'} = (1,2) doesn't work here.
How can I force list context?
-- Konrad