Two dimensional associative arrays?

2003-09-17 Thread Airman
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"; or @names(Bob,John,Jeff); @info=(Age,Zip,Phone); $data{Bob.Age}=23; foreach $entry (@names) { print "$data{$entry.Age}\n";

Re: Two dimensional associative arrays?

2003-09-17 Thread David Wall
--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) h

Re: Two dimensional associative arrays?

2003-09-18 Thread Jenda Krynicky
From: "Airman" <[EMAIL PROTECTED]> > 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"; > > or > > @names(Bob,John,Jeff); > @info=(Age,Zip,Phone); > > $data{Bob.Age