In a message dated 4/15/2004 2:25:14 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: >$a=100; $b=200; >($a=3 && $b=6 ) if ( 1 == 1 ); >print " $a $b \n"; > >Output : 6 6 > >OR my syntax is wrong ?
&& binds pretty tight. If it helps to see the parenthesis here is what you said: ($a = ($b = 6)); What you want is: $a=3 and $b = 6 Or override it with parens yourself ($a=3) && ($b=6) PS. Don't use $a and $b >regards, >Jay -will (the above message is double rot13 encoded for security reasons) Most Useful Perl Modules -strict -warnings -Devel::DProf -Benchmark -B::Deparse -Data::Dumper -Clone (a Godsend) -Perl::Tidy -Beautifier