I was flabbergasted by this one.

# cat weird.p6
my$x=42my$y="Zaphod"~"Beeblebrox"my$z="I think they're just
strange symbols of some kind"say"x='$x' y='$y' z='$z'"

# pugs weird.p6
x='42' y='ZaphodBeeblebrox' z='I think they're just
strange symbols of some kind'

Wow! It actually seems to work.
Are semicolons as statement terminators optional in Perl 6?
A cursory reading of the Synopses, I couldn't find a clear definition
of precisely what is a "statement" (c.f. in C, where "an expression
becomes a statement when it is followed by a semicolon").

/-\


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

Reply via email to