While it does not directly answer your question, I wanted to comment on style. In general, using variable names like this:
is a bad idea. See Why it's stupid to use a variable as as a variable name for more information.[$hardware1, $hardwareValue1], [$hardware2, $hardwareValue2], [$hardware3, $hardwareValue3],
You can use arrays, hashes, or some combination thereof to accomplish the same thing, and your data structures will be much more robust. For example:
# array my @hardware; $hardware[1] = 'whatever'; # hash my %hardware; $hardware{1} = 'whatever'; # hash of hashes my %hardware; $hardware{1} = { hw => 'whatever', value => 'somevalue' }; # hash of arrays my %hardware; $hardware{1} = [ 'whatever', 'somevalue' ]; # array of arrays my @hardware; $hardware[1] = [ 'whatever', 'somevalue' ]; # array of hashes my @hardware; $hardware[1] = { hw => 'whatever', value => 'somevalue' };
See perldsc for more information on complex data structures.
HTH
In reply to Re: Creating a Dynamic Table
by bobf
in thread Creating a Dynamic Table
by ikkon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |