On Wed, 3 Apr 2002, Darren Rook wrote: > I'm trying to push data into for use in a nested loop, but it's not being > pushed properly.
Can you be more specific? I don't know what you mean by "properly pushed." > my ( %show_data ); This "my" is in the wrong place. You need to put it inside the loop. Otherwise you're putting a reference to the same hash into every row of the loop. If by "not being pushed properly" you mean "every row has the data from the last row" then this is your problem. This reminds me - I could catch this mistake automatically by looking through the loop for match references. I think I should do that. It could be turned off with "strict => 0" if people actually want to be able to have the same hash in a loop twice... -sam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
