http://www.perlmonks.org?node_id=1033346


in reply to Re: File handles - there must be a better way
in thread File handles - there must be a better way

Or, keeping the index 0 assignment (array  @InHandles is not changed – might need it later?):

my $file1 = $InHandles[0]; ... for my $fh (@InHandles[ 1 .. $#InHandles ]) { ... }