in reply to error handling
What is the syntax error?
Make sure you put a semicolon (;) after your catch Error with {} statement. This is a statement, not a block construct like if and while.
use Error qw(:try); try { `$create_script $input`; #code that might thrown an exception; return; } catch Error with { my $error_handler = shift; # Get hold of the exception object }; # <-- Semicolon exit;
Ted Young
($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)
|
|---|