</pre><pre name="code" class="sql">$var=1;
$var1=2;
$var2=3;
$var3=4;
if (($var==1 and $var1==2) or ($var2==0) or ($var3 ==0))
-------------------------------------------------------------
$var=1;
$var1=2;
$var2=3;
$var3=4;
if ($var==2 and $var1==2){
print "11111111
"}
elsif ($var2==10){
print "222222
"}
elsif ($var3==4){
print "333333333
"}
[mysql@master ~]$ perl t2.pl
333333333
-----------------------------------------------------------------