Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 musing on the Monastery: (5)
As of 2014-10-22 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls