use strict; use warnings; no warnings 'uninitialized'; #### if (defined $foo and $foo) { ...