Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Multiple numeric not or compare in if statement

by LanX (Saint)
on Jul 02, 2020 at 05:36 UTC ( [id://11118789]=note: print w/replies, xml ) Need Help??


in reply to Multiple numeric not or compare in if statement

On a side note:

Importing List::Util::none is a shorter way to achieve this

Update

if ( none { $a == $_ } 3,7,88 ) { ...

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://11118789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found