Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
how to sort???
Previous Thread
Next Thread
Print Thread
View Threaded
Jul 2, 1999, 7:47 AM
jpop
Novice
(40 posts)
Jul 2, 1999, 7:47 AM
Post #1 of 2
Views: 2442
Shortcut
how to sort???
@unsort = (2,3,1,4,5,7,6);
how can i sort it to:
@sorted = (7,6,5,4,3,2,1);
???
Jul 1, 1999, 9:11 PM
polpus
Novice
(7 posts)
Jul 1, 1999, 9:11 PM
Post #2 of 2
Views: 2356
Shortcut
Re: how to sort???
In reply to
This will do:
Code:
@sort = sort {$b <=> $a} @unsort;
Cheers,
Polpus
------------------
WDresources
www.wdresources.com
Previous Thread
Next Thread
Print Thread
View Threaded