in reply to Re: Hashing multiple items
in thread Hashing multiple items
then perl automatically constructs a hash key as:$hash{$coord1,$coord2} = $value;
using $;, the "subscript separator" perl variable. The default value of which is octal 034, the control character "field separator". This isn't quite a perfect solution if your variables can store arbitrary binary data... but, in general, you're pretty safe against occurences of this character occuring in your data. You can perldoc perlvar for more details.$key = join($;, ($coord1, $coord2));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hashing multiple items
by Anonymous Monk on Nov 15, 2003 at 17:43 UTC | |
by CombatSquirrel (Hermit) on Nov 15, 2003 at 17:54 UTC |