okay, i'm a complete dummy.  i've used eval but not for exceptions,

probably its main purpose(?). do you have a little example maybe?

stumblin', bill



[EMAIL PROTECTED]

850.968.7764







-----Original Message-----

From: "Cornish; Merrill" [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, January 09, 2001 12:17 PM

To: "Dave Navarro" ; "[EMAIL PROTECTED]" 

Subject: RE: Perl question





die() throws an exception. If there is nothing there to catch that

exception, then the program ends.  If there is an exception handler,

then

the die() can be stopped there, such as at the function call. You use

eval()

to step up exception handlers.



If, however, you are merely looking for an escape from a function, then

create a block in the function, label it, then use last <label> to

escape to

the end of that labeld block.



Merrill





_______________________________________________

Perl-Win32-Users mailing list

[EMAIL PROTECTED]

http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to