Your skill will accomplish what the force of many cannot |
|
PerlMonks |
•Re: Re: Re: multiple method calls against the same object (f.ex GUI programming)by merlyn (Sage) |
on Oct 28, 2002 at 15:27 UTC ( [id://208523]=note: print w/replies, xml ) | Need Help?? |
Just use exceptions instead. Nothing wrong with wrapping a series of these things in an eval block to catch the exception.
I prefer exceptions when an action will likely work 95% of the time or more. That way, the testing doesn't interfere with my examination of the control flow, and you get to do nice tricks like a "return $self" chain. -- Randal L. Schwartz, Perl hacker
In Section
Cool Uses for Perl
|
|