Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Trying to compare a string...

by choroba (Abbot)
on Oct 18, 2013 at 08:10 UTC ( #1058719=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    condition || condition || condition
    
  2. or download this
    if ($genres[0] eq 'Science Fiction' || $genres[0] eq 'Sci-Fi' || or $g
    +enres[0] eq 'Fantasy') {
    
  3. or download this
    # Either
    if ($genres[0] =~ /^ (?: Science\ Fiction | Sci-Fi | Fantasy ) $/x) {
    
    # or
    if (grep $genres[0] eq $_, 'Science Fiction', 'Sci-Fi', 'Fantasy') {
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-09-19 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (132 votes), past polls