Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Exception handling for Image::Magick

by redlemon (Hermit)
on Sep 05, 2004 at 16:58 UTC ( #388631=note: print w/replies, xml ) Need Help??


in reply to Re: Exception handling for Image::Magick
in thread Exception handling for Image::Magick

the problem here is that I::M methods return a non-empty string on failure. So that would be:

$err = $image->DoSomething and die $err;

But sometimes methods are *meant* to return someting and then you have to test agains context to see if it's an error or not.

--
Lyon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://388631]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2017-07-27 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (402 votes). Check out past polls.