Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: sub returning undef

by eclark (Scribe)
on May 24, 2004 at 17:37 UTC ( [id://355990]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: sub returning undef
in thread sub returning undef

It would be more appropriate to die on error, and expect the calling code to trap it using:

eval { # calls go here }; if ($@) { # exception handling here }

Replies are listed 'Best First'.
Re: Re: Re: Re: sub returning undef
by exussum0 (Vicar) on May 24, 2004 at 17:42 UTC

      People who don't read the documentation (or ignore it) deserve their problems.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-24 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found