I"m trying to find a way to convert this into where I can use array indexes as the values but it doesn't seem to work.
my @data = ( { crc => 56, overrun => 1, inputerr => 45 }, { crc => 56, overrun => 7, inputerr => 4 }, { crc => 33, overrun => 7, inputerr => 4 } ) The following code won't load up the array with the hashes like it does by explicitly putting them in. @crcerrs = qw \ 56 56 33 67 22 11 88 94 452 334 67 65 2 3 3 3 \; @overrunerrs = qw \ 1 7 7 7 9 13 8 8 22 18 24 24 30 66 66 66 \; @inputerrs = qw \ 45 4 4 4 4 45 45 45 45 45 45 45 3 2 1 12 \ ; for ($i = 0; $i <= 15; $i++) { @data = ( { crc => $crcerrs[$i], overrun => $overrunerrs[$i], inputerrs => $inputerrs[$i] } ); }; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/