Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570253]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2017-05-26 17:09 GMT
Find Nodes?
    Voting Booth?