Perl Christmas Quiz 2009

Dermot paikkos at
Tue Dec 1 17:16:17 GMT 2009

2009/12/1 Philip Newton <philip.newton at>:
> On Tue, Dec 1, 2009 at 17:52, Dermot <paikkos at> wrote:
>> (not sure about this point) is a copy of the value in $a{1}.
> That's the salient point - it's an alias to the value in $a{1}, rather
> than a copy, since values %hash returns aliasses, sort just shuffles
> those aliasses, and foreach gives you an alias, too. So whatever you
> do to $b happens to $a{1} as well.

I kinda knew I was wrong thanx to Matt post. I'm sure aliasing was
mentioned in the Perl intermediate day I went to last week. Sorry Dave
didn't absorb that point.  The good think about getting in so publicly
wrong is that I won't forget in a hurry. :)

More information about the mailing list