Oh, it works! Thanks a lot. On Sat, Dec 4, 2010 at 12:29 AM, Shawn H Corey <shawnhco...@gmail.com>wrote:
> On 10-12-03 11:26 AM, Odin Liu wrote: > >> Interesting. So if I need deal with an array of files, and I have to use >> the array after reading each file. I have to save another copy of the >> array? >> > > No, use a lexical variable for each loop: > > foreach my $file ( @ins ){ > > > while( defined( my $line = <$in_fh> )){ > > > -- > 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/ > > > -- *Odin Liu * RD Engineer work mail: liuyid...@baidu.com blog: http://blog.odichy.org/ profile: https://www.google.com/profiles/odinushuaia