Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-10-20 22:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls