in reply to open multiple file using loops

You probably do not want or need to open multiple filehandle, so my answer is , use Iterator::Diamond

Replies are listed 'Best First'.
Re^2: open multiple file using loops
by Anonymous Monk on Jul 01, 2011 at 10:48 UTC
    perl foo.pl arg1file arg2file arg3file
    arg1file... are in the global variable @ARGV, which Iterator::Diamond reads one by one by one without magic