Re: Hash values as array indexes inside Arrays

2008-02-16 Thread Paul Lalli
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

Re: Hash values as array indexes inside Arrays

2008-02-16 Thread Dr.Ruud
[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-

Re: Hash values as array indexes inside Arrays

2008-02-16 Thread J. Peng
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