If you use || instead of or then you need parentheses for the open function:
open( NEWFILE, '>', "$dir/subdirectory/$outputfile" ) || die "Can't +open $dir/subdirectory/$output
In reply to Re^3: Why can't I open a file for writing?
by jwkrahn
in thread Why can't I open a file for writing?
by tdilling
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |