Hi - You need an or conditional ('||') not operator ('|'):
open(MYFILE, ">$myfile") || die "Cannot open file"; ^^ Your message should appear! || you can use 'or'. :) Aloha => Beau; -----Original Message----- From: John Dunn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 1:50 AM To: [EMAIL PROTECTED] Subject: Where do die messages go? open(MYFILE, ">$myfile") | die "Cannot open file"; Where does the die message go? When I run my script from the command prompt I do not see the die message. I do get an error about the directory for the file not existing, but it is not my die message. This is on Win 2K John Dunn Sefas Innovation Ltd 0117 9154267 www.sefas.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]