in reply to Creating a Dynamic Table

While it does not directly answer your question, I wanted to comment on style. In general, using variable names like this:

[$hardware1, $hardwareValue1], [$hardware2, $hardwareValue2], [$hardware3, $hardwareValue3],
is a bad idea. See Why it's stupid to use a variable as as a variable name for more information.

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

Replies are listed 'Best First'.
Re^2: Creating a Dynamic Table
by ikkon (Monk) on Jan 12, 2007 at 14:35 UTC
    that is a very good point thanks for bringing that to my attention, I will have to change that, thanks again