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

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

by ozboomer (Friar)
on Sep 18, 2019 at 13:42 UTC ( #11106340=note: print w/replies, xml ) Need Help??


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

Well, after a bit of study, I think I'm pursuing hippo's suggestion, Fanx! (see Re^2: How to Order an Array's Elements to Match Another Array's Element Order above)... mainly because it was clear to me and directly manipulates the arrays and hashes without any sorting (which is not really an issue with maybe 200 records... but scaling may ultimately be an issue for the approach).... but sorting indexes isn't too horrible, I suppose...

I keep forgetting about the likes of List::MoreUtils, etc, so it was a helpful reminder to always look in the core modules (and others in CPAN).

I also appreciate everyone's efforts at producing some slick suggestions, some of which are simply too clever for 'me of little brain' to understand(!)

Back to coding I go... and Thanks! again to everyone.

  • Comment on Re: 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://11106340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2019-12-13 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?