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";
}
I guess in perl code maybe this would work???
But how would I assign one dimension of the two dimensional array to a new
one dimensional only array and still keep the assosiation of @info with one
assignment?
Example:
%bobsdata=$data{???}; # All bob's data
print $bobsdata{Age}; # Bob's age?
I know the below would work but looking for one assigment or the correct way
to do two dimensional assosiated arrays:
foreach $entry (@info) {
$bobsdata{$entry}=$data{Bob.$entry};
}
Thanks,
Glen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]