On Feb 16, 9:35 am, [EMAIL PROTECTED] (Dr.Ruud) wrote:
> [EMAIL PROTECTED] schreef:
>
> > The following code won't load up the array with the hashes like it
> > does by explicitly putting them in.
>
> > [EMAIL PROTECTED] = qw \ 56 56 33 67 22 11 88 94 452 334 67 65 2 3 3 3 \;
>
> Because of the bac
[EMAIL PROTECTED] schreef:
> 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 \;
Because of the backslash?
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-
On Feb 16, 2008 1:57 PM, <[EMAIL PROTECTED]> wrote:
> @data = (
> { crc => $crcerrs[$i], overrun => $overrunerrs[$i], inputerrs =>
> $inputerrs[$i] } );
> };
This overide the array each time.
You need a 'push' at each loop:
push @data, { };
good luck.
--
To unsubscribe, e-mail: [E
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 w