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: [] On Behalf Of Marc Espie
Sent: 04 October 2010 13:24
Subject: new perl

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

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...