Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Best Practices for Exception Handling (no isa)

by tye (Cardinal)
on Jan 29, 2003 at 03:59 UTC ( #230855=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub UNIVERSAL::isError { 0 }
    
  2. or download this
        if(  $data  ) {
    
  3. or download this
        # Dies if any method fails:
        $value= $Registry->SetOption(Delimiter=>"/")
            ->OpenKey("This")->GetValue("That");
    ...
        if(  ! $Registry->OpenKey("Foo")->GetValue("Bar")  ) {
            # Create missing bits here
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2014-07-23 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (154 votes), past polls