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


in reply to Re^2: 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

Good point :). Although I like it more because it short than because it is fast (I basically treat speed considerations as insignificant until proven otherwise :) )

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

Replies are listed 'Best First'.
Re^4: How to Order an Array's Elements to Match Another Array's Element Order
by swl (Curate) on Sep 17, 2019 at 11:05 UTC

    Yes, it's more concise. It does also need to be called a large number of times to be meaningfully faster.