in reply to Needs new memory location
Either use a new variable each time...
foreach $row (@rows} { my %hrec = ( # etc... }
or allocate a new anonymous hash each time...
--foreach $row (@rows} { $hrec = { # Note: different bracket # etc... } $num = push @products, $hrec; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Needs new memory location
by Anonymous Monk on Aug 21, 2000 at 19:56 UTC |