flipper has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use Error qw(:try); my $foo=foo->new(); try{ $foo->foo(); }catch Error with { warn "i dont want to handle the error here"; }; package foo; sub new(){ return bless {}, "foo"; } sub foo($){ my $self=shift; try{ throw Error::Simple "handle me"; warn "success"; return; }catch Error with { warn "why does this never fire?"; }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error.pm not playing nicely with objects?
by adrianh (Chancellor) on Feb 03, 2006 at 13:58 UTC | |
by Anonymous Monk on Feb 03, 2006 at 14:04 UTC | |
|
Re: Error.pm not playing nicely with objects?
by perrin (Chancellor) on Feb 03, 2006 at 13:52 UTC |