in reply to Use of uninitialized value in string eq

In a case not <something> the $moh variable remains uninitialized. Just initialize it in declaration line
my $moh = ''; # note that parens are not required here

Replies are listed 'Best First'.
Re^2: Use of uninitialized value in string eq
by hsinclai (Deacon) on Oct 23, 2008 at 07:45 UTC
    Curious.. Doing that makes Perlcritic http://www.perlcritic.com/ spit out a Severity 2 error "Quotes used with an empty string .. See p53 of PBP" ... wonder why this is?

    Anyone have PBP on their shelf and can look on p53, or already know the more explicit reason ?