Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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


Comment on Re^2: Exception handling for Image::Magick
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2014-08-23 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls