Dear all,
I am working with 2D coordinates (actually representing cells in an Excel sheet) and need to add and subtract various offsets to get at the coordinates I need. Currently I am mainly using references to arrays to hold the coordinates, but I was wondering whether there was some clever perly way via which I would be able to do something like the obviously incorrect:
@origin = (2,3); @offset = (4,5); @interesting_cell = @origin + @offset; # = (4) not (6,8) Doh!
Any ideas?
Thanks,
In reply to Perly way of handling coordinates? by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |