Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Help with IF statement for 2 matching conditions.

by Athanasius (Archbishop)
on Nov 26, 2012 at 13:22 UTC ( [id://1005651]=note: print w/replies, xml ) Need Help??


in reply to Help with IF statement for 2 matching conditions.

Sounds like you’re looking for logical AND, which is && (or its lower-precedence version and):

if ($host =~ /mac/ && $browser eq 'iexplore') { ...

Hope that helps,

Athanasius <°(((><contra mundum

Replies are listed 'Best First'.
Re^2: Help with IF statement for 2 matching conditions.
by Doozer (Scribe) on Nov 26, 2012 at 13:26 UTC
    Wow what quick responses! Thanks a lot. I thought it must have been something simple but I couldn't find anything on the web, probably because I was searching for the wrong statement.

    Cheers!

      The building blocks in Perl are easy and powerful. With those blocks you can make very complex functionality.

      Good luck coding and automating the world!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found