Exception Handling (when to use it)

Ovid publiustemp-londonpm at yahoo.com
Fri Jul 13 11:22:50 BST 2007


----- Original Message ----
From: Peter Corlett <abuse at cabal.org.uk>

> Java seems to be proof that people who don't understand COBOL are doomed to
> reinvent it, badly.

As an ex-COBOL programmer:

  return $corlett->is_joking 
    ? laugh() 
    : throw_type_mismatch "Can't compare cheese and Wednesday";

Cheers,
Ovid
 
--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/






More information about the london.pm mailing list