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; }
--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000, ICA, London
<http://www.yapc.org/Europe/>

Replies are listed 'Best First'.
RE: Re: Needs new memory location
by Anonymous Monk on Aug 21, 2000 at 19:56 UTC
    Thanks, I was making it harder than it was...I missed the bracket change too.
    --rjm--