in reply to Hiding Perl Error

This is a continuation of Suppressing Warning/Error messages.

You now are trying to compare the empty string numerically, which to Perl doesn't make much sense so it warns you. You could check that your string is not the empty string before trying a numeric comparison.

Replies are listed 'Best First'.
Re^2: Hiding Perl Error
by intoperl (Acolyte) on Sep 15, 2015 at 11:11 UTC

    Thats it Corion, You nailed it right. Thanks !!