--On Wednesday, September 17, 2003 7:52 PM -0700 Airman <[EMAIL PROTECTED]> wrote:
Is there any special way to do row/col (two dimensional) based associative arrays?
Something like:
$array{1.1}="line one column one"; $array{1.2}="line one column two";
Close. You need a hash of (references to) hashes:
my %HoH; $HoH{1}{2} = "line one column two"; $HoH{1}{1} = "line one column one";
See 'perldoc perldsc' for more examples, look for "HASH OF HASHES". If you want multidimensional arrays, see 'perldoc perlol'.
It will definitely help to understand references: 'perldoc perlref'. "help" is a bit of an understatement. To build and use your own data structures (or objects) effectively, you HAVE to understand references.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]