in reply to Preventing Use of uninitialized value

Instead of ne you could use String::Util::neqq which would take care of that for you.

Edit: s/Scalar/String/ - thanks, LanX


🦛

Replies are listed 'Best First'.
Re^2: Preventing Use of uninitialized value
by LanX (Saint) on Sep 20, 2021 at 21:43 UTC
    > you could use Scalar::Util::neqq

    Strange, the documentation says neqq($scalar1, $scalar2) The opposite of neqq ...

    On a side note: you linked to String::Util , which is not in CORE like Scalar::Util

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery