open (my $fh , "<", $ENV{SGE_TASK_ID}.".txt") or die $!; etc ...