You can do this

die "\n";

The newline means die will not print anything out to STDOUT. (other than a
new line...)

HTH

John

-----Original Message-----
From: Alex Harris [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2002 14:22
To: [EMAIL PROTECTED]
Subject: to die, croak, or confess


I need to place code that leaves my program entirely if certain errors occur

(mostly on opening a file).  However I don't want ANY messages going 
anywhere except my $errlog.  (I noticed die, seem to always show a message 
at the command line).  What's the best way to handle say the following then 
if an error occurs?

open(MFILE, $file)



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to