in reply to Newbie hash/sorting question
One way to correct this (not the best, but the simplest) is to make a COPY of the %recordset each time.
That way, you get a reference to the CONTENTS at the current time, instead of the same reference.
Change your "push" statements to :
push @data, {%recordset}; # Make a reference to a COPY of the contents + of %recordset
"XML is like violence: if it doesn't solve your problem, use more."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Newbie hash/sorting question
by Anonymous Monk on Dec 09, 2011 at 12:07 UTC | |
by msensay (Novice) on Dec 09, 2011 at 14:21 UTC | |
by aaron_baugher (Curate) on Dec 09, 2011 at 17:06 UTC | |
by msensay (Novice) on Dec 09, 2011 at 19:59 UTC |