Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: testing more than one item for equality

by fenLisesi (Priest)
on Oct 18, 2006 at 11:43 UTC ( [id://579044]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($item1 eq $item3 or $item2 eq $item3) {
        ## do something
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    else {
        print "I would rather watch Gilligan's Island\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-19 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found