in reply to Multiple check in If statement ??

You change it like this if you want to match everything else use || to satisy atleast one.

You see perlop.

$a = "a"; $b = "b"; $c = "c"; $d = "d"; $e = "e"; if (($a eq "a")&& ($b eq "b")&& ($c="c")&& ($d="d")&& ($e="e")) { print "success"; } else { print "failure"; }

Regards,
Anniyan

Replies are listed 'Best First'.
Re^2: Multiple check in If statement ??
by ysth (Canon) on Jul 11, 2005 at 15:59 UTC
    if (($a eq "a")&& ($b eq "b")&& ($c="c")&& ($d="d")&& ($e="e")) {
    You have some = there that should be eq.