Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by swl (Deacon)
on Sep 17, 2019 at 08:46 UTC ( #11106283=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %index_map;
    @index{@array} = (0..$#array);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2019-11-12 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (66 votes). Check out past polls.

    Notices?