Hi,

Andrew Savige wrote:
> The following program:
> 
> my $x = 1;
> my $y = 2;
> $x == 1 or $y = 42;
                ^ typo?

> print"x='$x' y='$y'\n";
> 
> prints x='1' y='2' in perl5, but prints x='1' y='42' in pugs.

using r763, it works correctly:

$ ./pugs -we 'my $x = 1; my $y = 2; $x == 1 or $y == 42; say "x=$x
y=$y"'
x=1 y=2


--Ingo

-- 
Linux, the choice of a GNU | Elliptic paraboloids for sale.  
generation on a dual AMD   | 
Athlon!                    |

Reply via email to