The following program:

my $x = 1;
my $y = 2;
$x == 1 or $y = 42;
print"x='$x' y='$y'\n";

prints x='1' y='2' in perl5, but prints x='1' y='42' in pugs.

(I'm having a go at rewriting a small p5 script in p6 and finding out,
by trial and error, what seems to work in Pugs and what doesn't).

Oh, and should I add:

use v6;

at the top of my Pugs .p6 scripts? (I have no idea what that does,
just noticed it in some other example scripts).

Thanks,
/-\


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

Reply via email to