Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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

Comment on Re: reverse sort arrays in subroutines
Select or Download Code
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 rifling through the Monastery: (2)
As of 2015-11-28 04:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls