in reply to Use of uninitialized value in string eq

You are trying to compare with an uninitialized string... Do all those if it is defined.
if (defined $moh) { ..... }

Replies are listed 'Best First'.
Re^2: Use of uninitialized value in string eq
by johngg (Canon) on Oct 23, 2008 at 10:32 UTC
    You are trying to compare with an uninitialized string... Do all those if it is defined. if (defined $moh) { ..... }

    That is just treating the symptoms rather than the root cause of the problem. Much simpler and safer, surely, to initialise,

    my $moh = q{};

    before use.

    Cheers,

    JohnGG