in reply to Re^3: Perl try { } catch(e) { }
in thread Perl try { } catch(e) { }
Full disclosure: I am the author of this module that I created when Devel::Declare on which TryCatch was relying became obsolete.use Nice::Try; try { # do something die( "Argh...\n" ); } catch( $wow ) { return( $self->error( "Caught an error: $wow" ) ); } finally { # do some cleanup }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Perl try { } catch(e) { }
by haukex (Archbishop) on Mar 24, 2021 at 08:51 UTC | |
by jdeguest (Beadle) on Jun 17, 2021 at 02:47 UTC | |
by haukex (Archbishop) on Jun 17, 2021 at 08:57 UTC | |
by jdeguest (Beadle) on Jun 18, 2021 at 11:53 UTC | |
by Haarg (Priest) on Jun 18, 2021 at 04:10 UTC | |
by jdeguest (Beadle) on Jun 18, 2021 at 11:31 UTC |