If you want to preserve/append to the PPID instead, use this construct to open the file in "append" mode:
open my $wfh, '>>', "$dir/$outfile" or die "ERROR: Can't open/append the damned output file! The OS says +:$!";
This is not an optical illusion, it just looks like one.
In reply to Re^3: Saving my output to a folder
by NetWallah
in thread Saving my output to a folder
by LastGen Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |