The array index negate-adjust trick (easily encapsulated in a subroutine) is particularly useful when dealing with 'large' arrays, the reversed elements of which can then be accessed in-place: no reversed copy, possibly quite expensive in terms of space, need be made.
In reply to Re^4: accessing variable vaule outside for loop
by AnomalousMonk
in thread accessing variable vaule outside for loop
by gaurav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |