Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
holli is about to take the first hit since a month and this weed is strong shit. Should my head explode, someone call 911.
[ambrus]: And even when I traveled on a big plane for a long flight, it had 3 seats, then corridor, then 4 seats, then corridor, then 3 seats, so less than half of the people sit between two other dudes.
[1nickt]: you are missing an entire element, which is that your base ticket price only gets you a middle seat. If you want to be window or aisle you must pay, or gamble that you'll be assigned there at ...
[1nickt]: ... flihght time (hoping that not enough others have paid and there are some "good" seats to be allotted.
[1nickt]: And this is in addition to paying extra if you want to be in the first 12 rows, or in the emergency exit row.
choroba was once seeted besides a guy that was so fat he was almost squished between the guy

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-12-18 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (486 votes). Check out past polls.

    Notices?