Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Unique Array Items

by kelan (Deacon)
on Nov 07, 2003 at 15:47 UTC ( [id://305328]=note: print w/replies, xml ) Need Help??


in reply to Unique Array Items

How about this way:

my %items; @items{@toBeMoved} = undef; @toBeMoved = sort {$a <=> $b} keys %items;
Update: Guess I didn't read the other replies close enough. This is just a rewording of sauoq's reply above.

kelan


Perl6 Grammar Student

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305328]
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: (4)
As of 2024-04-24 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found