Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 having an uproarious good time at the Monastery: (4)
As of 2014-11-26 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls