Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: OOP style question: Checking a value

by spq (Friar)
on Aug 29, 2006 at 21:04 UTC ( #570253=note: print w/replies, xml ) Need Help??


in reply to Re: OOP style question: Checking a value
in thread OOP style question: Checking a value

Sure. But a response code is always set, so in you example above you would be checking $client->foo's result in the if (){}. Otherwise though, I leave how to structure the code checking foo's result and looking at the response code to the users preferences. ;) And I still need to define how they probe for the bad news. ... Oh, perhaps I wasn't clear. There are far more than just pass/fail (OK/ERROR) as possible response codes.

The primary target for the code in this project is a related mod_perl project. While I've reused the same massaging and response codes for my own error checking and testing (and far more code uses them for those purposes), the response code values are actually the same as used by Apache, and as such can be meaningfully returned to a client (browser) with the correct meaning in the appropriate circumstances.

So that's one vote for #5. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570253]
help
Chatterbox?
[james28909]: why, what is the point. if you cant see that we are smarter than cavemen then i need to just shutup lol. cavemen didnt propell themselves onto a moon. they stared at it and probably howled
[SuicideJunkie]: We are certainly vastly more educated and wealthy. Raw intelligence is much more difficult to measure.
[james28909]: exactly. i think the question that should be asked is, where will intelligence take us.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2017-12-15 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (433 votes). Check out past polls.

    Notices?