Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Unique Array Items

by kelan (Deacon)
on Nov 07, 2003 at 15:47 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2022-12-03 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?