http://www.perlmonks.org?node_id=263125


in reply to Re: Things every perl programmer should know?
in thread Things every perl programmer should know?

I'd use
use strict; use warnings; no warnings 'uninitialized';
myself. I seriously dislike having to write code like
if (defined $foo and $foo) { ...

Update on Jun 05, 2003: I do not remember the last time I got a "Variable is used once" warning. Maybe I was just lucky :-)

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature