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
|
---|