Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How to Order an Array's Elements to Match Another Array's Element Order

by LanX (Cardinal)
on Sep 18, 2019 at 10:22 UTC ( #11106335=note: print w/replies, xml ) Need Help??


in reply to Re: How to Order an Array's Elements to Match Another Array's Element Order
in thread How to Order an Array's Elements to Match Another Array's Element Order

>

my @array = ( "APPLE", "ORANGE", "PEACH", # Use this for the +ORDER "GRAPE", "BANANA", "PINEAPPLE" );

shouldn't this be completely ordered ?

BANANA < GRAPE < ORANGE

UPDATE

never mind, I should've read the OP first! :-)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^2: How to Order an Array's Elements to Match Another Array's Element Order
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-08-13 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (69 votes). Check out past polls.

    Notices?