in reply to Re^2: Aliasing bites
in thread Aliasing bites

Compare the output from these two snippets:

$ pugs -e 'my %hash; %hash<foo>[0]<bar>[0] = 1; my $alias := %hash<foo>[0]; say ref $alias; %hash<foo>[0] = 5; say ref $alias' Hash Int $ pugs -e 'my %hash; %hash<foo>[0]<bar>[0] = 1; my $ref = %hash<foo>[0]; say ref $ref; %hash<foo>[0] = 5; say ref $ref' Hash Hash