Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Athanasius (Bishop)
on Sep 17, 2019 at 08:06 UTC ( #11106278=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        (first_index { $a eq $_ } @fruit) <=>
        (first_index { $b eq $_ } @fruit);
    }
    
  2. or download this
    18:00 >perl 2017_SoPW.pl
    ["APPLE", "GRAPE", "PINEAPPLE"]
    
    18:04 >
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2019-11-23 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (113 votes). Check out past polls.

    Notices?