CodingStyleGuide
From SqueezeboxWiki
Revision as of 08:05, 23 June 2010 by Soulkeeper (Talk | contribs)
Do use:
if (!$foo) { ... return;}
Not:
return unless $foo;
Avoid:
my $bar = shift || return;
unless certain that $bar will never see 0 as a valid value or string.