Andrew Savige writes:
> 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?

Semicolons have the exact same status as in Perl 5, except for some
special cases about closing braces.  So no, that should not work.

Luke

Reply via email to