in reply to &process or die
open my $OUTFILE, q{>}, $outfile or die "failed to open $outfile: $!";
On another note, you can use the path and skip the chdir calls. e.g.
my $OUTFILE, q{>}, "$path_to_the_data_directory/$outfile" or die "failed to open $path_to_the_data_directory/$outfile: $!";
|
|---|