http://www.perlmonks.org?node_id=1005651


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!