Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: sub returning undef

by eclark (Scribe)
on May 24, 2004 at 17:37 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2022-05-25 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?