Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 ( #208523=note: print w/replies, xml ) Need Help??


in reply to Re: Re: multiple method calls against the same object (f.ex GUI programming)
in thread multiple method calls against the same object (f.ex GUI programming)

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
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: Re: multiple method calls against the same object (f.ex GUI programming)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://208523]
help
Chatterbox?
[soonix]: when I read "Joda time format" I thought of "Yoda time format" e.g. ss:mm:HH dd MMM YYYY :-)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-03-24 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (297 votes). Check out past polls.