Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: sorting based on a list

by Chady (Priest)
on May 09, 2001 at 18:19 UTC ( [id://79093]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://79093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-23 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found