[ABE.pm] data structures within data structures
Faber Fedor
faber at linuxnj.com
Fri Dec 31 10:04:05 CST 2004
What mechanism in Perl do I want to do for the following:
I want to create an array/hash that contains in each row variables and
arrays. If I have two vars and an array, it might look something like
this:
my $ds =( {"1", "2", (a,b,c,d) },
{"3", "4", (e,f,g) },
{"5", "6", (h,i,j,k,l) }
);
How would I go about initializing/accessing the internal array elements?
The reason I'm doing this is I need to wrote six programs that all do
the same thing; they differ only in the value of 4 variables and an
array. Instead, I want to write one program and just change the
variables and array values.
--
Regards,
Faber
Linux New Jersey: Open Source Solutions for New Jersey
http://www.linuxnj.com
More information about the ABE-pm
mailing list