in reply to Hash vs constant vs package vs other for data structure
Assuming that you'll never use the horizontal coordinate (abscissa) without the vertical coordinate (ordinate), you might even store them as a concatenated value in a hash, thereby simplifying your data structure by removing one level of nested-ness:
or:my %notes; # notes is now a hash #... $notes{"$x;$y"}[0] = ...
$notes{"$x;$y"}{...} = ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash vs constant vs package vs other for data structure
by oldtechaa (Beadle) on Mar 27, 2017 at 20:34 UTC | |
by Laurent_R (Canon) on Mar 27, 2017 at 21:19 UTC | |
by oldtechaa (Beadle) on Mar 28, 2017 at 13:12 UTC | |
by Laurent_R (Canon) on Mar 27, 2017 at 21:50 UTC | |
by oldtechaa (Beadle) on Mar 27, 2017 at 20:41 UTC |