@$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.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^2: Using MAP to swap around HoA hash keys and array values.
by diotalevi
in thread Using MAP to swap around HoA hash keys and array values.
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |