in reply to Trapping errors

In addition to what my anonymous brother said, I'd suggest checking $@ after using eval -- when using an eval block to catch exceptions, it's a good idea to check if an exception actually occured.

Replies are listed 'Best First'.
Re^2: Trapping errors
by mcoblentz (Scribe) on Jul 23, 2014 at 23:14 UTC
    Thanks, I tried that but I didn't get a true answer from the API. Turns out its giving back a "non-OK" status but not really an error. So I need to read the hash return and grab the status. I just need a bit of help with that and I'm off!