qsub -t 1-100 myscript.pl #### open (my $fh , "<", $ENV{SGE_TASK_ID}.".txt") or die $!; etc ...