Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: reverse sort arrays in subroutines

by 2teez (Priest)
on May 21, 2013 at 21:48 UTC ( #1034616=note: print w/replies, xml ) Need Help??

in reply to reverse sort arrays in subroutines

change the line my @SortedArray = sort reverse @PassedArray; to my @SortedArray = reverse sort @PassedArray; in this case, It should do.
Please also use strict and warnings, in your codes, you would be glad you do.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Replies are listed 'Best First'.
Re^2: reverse sort arrays in subroutines
by JockoHelios (Scribe) on May 21, 2013 at 22:04 UTC

    2teez, That did the trick for the reverse sort. Now I'm back to more involved (for a newbie) subroutine coding, so I'll likely be back with another question before long :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2016-10-24 17:30 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.