Your code checks for errors from open (good) but it just calls die on failure (not so good). Better would be to include what you were trying to open as well as the contents of the $! variable which will tell you what the problem was (showing just creating your output handle but similar message are useful for opening files for input as well):
open my $outfh, '>', $New_part_report or die "Problem opening '$New_part_report' for writing: $!\n";
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re^3: Edit a New file in place after reading it in
by Fletch
in thread Edit a New file in place after reading it in
by perlynewby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |