in reply to Why can't I open a file for writing?
Perhaps the bitwise or (|)?
open NEWFILE, '>', "$dir/subdirectory/$outputfile" | die "Can't open
Arrrgh! That fixed it. That's what happens when you stare at the same line of code for too long... LOL
If you use || instead of or then you need parentheses for the open function:
open( NEWFILE, '>', "$dir/subdirectory/$outputfile" ) || die "Can't
Throwing nuclear weapons into the sun
Making everybody on Earth disappear
A threat from an alien with a mighty robot
A new technology or communications medium
Providing a magic fish to a Miss Universe
Establishing a Group mind
Results (194 votes). Check out past polls.