Do perl have handling error (exception) mechanism?
for example: java use : try{...} catch{...}
perl has pretty poor build-in exception handling which consists of executing some code in an eval{...} block and then check $@ to see if an error occured. There are a couple of good modules that provide a very nice wrapper around the built-in mechanism. Probably the best is 'Error' which adds 'try', 'catch', and 'except' blocks. There are also Exception::Class, Exception and a bunch of others <http://search.cpan.org/search?query=exception>.
Regards, Randy.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>