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
In reply to Re^2: Use of uninitialized value in string eq
by johngg
in thread Use of uninitialized value in string eq
by mohanish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |