http://www.perlmonks.org?node_id=11106340


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