Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: And plus OR

by ablanke (Prior)
on Jan 15, 2017 at 13:52 UTC ( #1179590=note: print w/replies, xml ) Need Help??


in reply to And plus OR

for maintainability reasons the code could be changed to something like that:
use List::Util qw(none); my @types = ( 'Check In', 'Check Out' ); if ($username eq $security && none { $type eq $_ } @types ){}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2022-05-20 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (73 votes). Check out past polls.

    Notices?