You can also use "warn" rather than "die". Dean Theophilou Genisar
-----Original Message----- From: Agustin Rivera [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:48 PM To: [EMAIL PROTECTED]; Richard J. Barbalace Subject: Re: Resume after die? I'm not too sure I understand, but if you want to resume after calling die, then don't call die. Why not put print "Here's an exception". Or, determine if the error is fatal and set fatal=1, if not fatal=0. Then die if fatal=1; Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com ----- Original Message ----- From: "Richard J. Barbalace" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 03, 2002 5:43 PM Subject: Resume after die? > I'm looking into ways to do resumptive exception handling in Perl. For > example, I have something equivalent to: > eval { > # Code where an error may occur > die "Here's an exception"; > # Code where I want to resume after handling the exception > print "Continuing....\n"; > }; > if ($@) { > # Handle the exception > # Resume at the line following the exception > } > > Is there a way of resuming after the die statement? If not, is there > a standard way of resuming after exception handling in Perl? I have > code that allows redoing the entire eval block or simply continuing > after the eval block, but I have not found any way to resume inside > the eval block. > > + Richard J. Barbalace > Cambridge, MA > > -- > 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] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]