in reply to Re: sorting based on a list
in thread sorting based on a list

what's @hash{@list}?? and wouldn't hasing it up kill duplicates?? wouldn't someone need those duplicates??

more: I ran this and got: zulu xray bravo alpha yankee charlie is this considered sorted??


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: Re: sorting based on a list
by davorg (Chancellor) on May 09, 2001 at 18:52 UTC

    @hash{@list} is the list of hash values corresponding to the keys in @list.

    And, yes, it does break if @list contains duplicates.

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

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me