in reply to strange looking code
@A{keys %r} = keys %r; [download]
foreach $key (keys %r) { $A{ $key } = $key; } [download]