Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: And plus OR

by ablanke (Vicar)
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
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 chilling in the Monastery: (6)
As of 2020-05-29 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (169 votes). Check out past polls.

    Notices?