Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Best Practices for Exception Handling (no isa)

by tye (Sage)
on Jan 29, 2003 at 03:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://230855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-28 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found