There's more than one way to do things | |
PerlMonks |
Re: Tuesday Evening Code Quizby dws (Chancellor) |
on Oct 31, 2001 at 02:19 UTC ( [id://122224]=note: print w/replies, xml ) | Need Help?? |
At first glance, $foo will end up holding a map and an inverted map drawn from @a. Looks like a long-winded way of saying
%foo = (@a, reverse @a);
In which case $foo{"c"} would be 3.
On second glance, first glance was wrong, wrong, wrong. It's %foo{@a} = reverse @a; Partial credit?
In Section
Meditations
|
|