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 | |
by gepebril69 (Scribe) on Nov 26, 2012 at 13:57 UTC | |
by Anonymous Monk on Nov 26, 2012 at 13:37 UTC |
In Section
Seekers of Perl Wisdom