in reply to Re: Aliasing bites
in thread Aliasing bites

Perhaps I've missunderstood your post, but what do aliases get you that references don't? Slightly nicer syntax?

Replies are listed 'Best First'.
Re^3: Aliasing bites
by revdiablo (Prior) on May 11, 2005 at 19:23 UTC

    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