in reply to Script help
(Unless I am behind the times and it's one of the very latest features, or exported by default from one of your modules.)
Instead, use eval { #try some code }; if ($@) { # catch the error }. There's no support for finally{}.
Oh, and use strict;.
|
|
---|