On 10-12-03 11:31 AM, Odin Liu wrote:
No, actually I need deal with these files twice. So I need to keep the array of these files. But after the first time dealing with these files, the array of these files had been changed.
Only if you try to use $_ twice. Use a lexical variable for all your loops. -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. The secret to great software: Fail early & often. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/