in reply to Tuesday Evening Code Quiz

It took a minute to make sure the code above didn't have an off-by-one error, but I think it does the same thing as:
@foo{@a} = reverse @a;

-Blake

Replies are listed 'Best First'.
Re: Re: Tuesday Evening Code Quiz
by davorg (Chancellor) on Oct 31, 2001 at 02:08 UTC

    Yeah. That's what I xame up with. No idea when that would ever be useful tho' :)

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you don't talk about Perl club."

      Perhaps a good answer for the first question would have been....
      Not enough information. The output is dependent on the unspecified values of $[ $, and $#

      -Blake