Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 20:39 UTC ( #11106325=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

If you want to preserve insertion order then have a look at Hash::Ordered.

It does not allow access to the position of items, though, so might not do all you need in this case.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2019-11-22 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (108 votes). Check out past polls.

    Notices?