in reply to When warnings get in the way

I will sometimes use this kind of construct if I have reasons for not defining $foo earlier.
if ( ($foo||'') eq "true") { ...