in reply to Re: Using MAP to swap around HoA hash keys and array values.
in thread Using MAP to swap around HoA hash keys and array values.

@$v - 1

You meant $#$v. @$v - 1 is taking a wrong value and fixing it make it right. $#$v is already right. You should prefer the value that is already right to prevent accidentally getting an off-by-one if you ever forget to include the fixing -1.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊