Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Multiple numeric not or compare in if statement

by LanX (Cardinal)
on Jul 02, 2020 at 05:36 UTC ( #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
Node Status?
node history
Node Type: note [id://11118789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2020-08-10 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (58 votes). Check out past polls.

    Notices?