Alexander Nasonov's shared items

Monday, October 25, 2010

use autodie;

I rarely use perl but I'm sure I'll need this feature next time I dive into perl ;-)
-----Original Message-----
From: owner-tech@openbsd.org [mailto:owner-tech@openbsd.org] On Behalf Of Marc Espie
Sent: 04 October 2010 13:24
To: tech@openbsd.org
Subject: new perl

if you run into "fishy" perl scripts, newer perl includes (as standard)
autodie.

a simple
use autodie;

and at least, stupid stuff that NEVER CHECKS error returns from open() and
the like will die, die, die instead of struggling onwards...

No comments:

Post a Comment