Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Error Handling Misconception

by kesterkester (Hermit)
on Sep 04, 2003 at 13:04 UTC ( #288853=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval { main () };
    
    ...
        # do everything 
        ...
    }
    
  2. or download this
    eval { main () };
    print STDERR "# $0: ", $@
    ...
    }
    
    sub test_sub { die "test_sub dies" }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2020-06-01 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?