in reply to Why can't I open a file for writing?
Perhaps the bitwise or (|)?
Try or or || instead.open NEWFILE, '>', "$dir/subdirectory/$outputfile" | die "Can't open + $dir/subdirectory/$output here-^
In Section
Seekers of Perl Wisdom
in reply to Why can't I open a file for writing?
Perhaps the bitwise or (|)?
Try or or || instead.open NEWFILE, '>', "$dir/subdirectory/$outputfile" | die "Can't open + $dir/subdirectory/$output here-^