Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Preventing Use of uninitialized value

by hippo (Bishop)
on Sep 20, 2021 at 21:38 UTC ( [id://11136896]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11136896]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found