Dan Muey wrote:
Open (...$file ...) || die "Oops I died : $@" if (-e $file);
Something like that should work
Dan
-----Original Message-----http://mailplus.yahoo.com
From: Rob Richardson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 12:52 PM
To: [EMAIL PROTECTED]
Subject: RE: Where do die messages go?
Greetings!
If I remember correctly, in either Visual C++ or Visual Basic (or both) there is a way to call open() (or its equivalent) for appending and to have it fail if the file doesn't previously exist. Is there a way to do that in Perl?
Merely curious -- I'm not likely to need this in the near future.
RobR
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]