in reply to Advantage of Exception handling in perl

When you indicate errors via return value rather than by throwing exceptions, all code that calls other code that could somehow fail has to check for the return value.

On the other hand if you throw exceptions on errors, you can decide at which level want to catch those, and don't have to check for every call that might fail.

  • Comment on Re: Advantage of Exception handling in perl