You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run this program with the Perl6 compiler, but it won't compile:
# this example is from Rosetta Code:
# https://rosettacode.org/wiki/99_Bottles_of_Beer#Perl_6
my $b = 99;
repeat while --$b {
say "{b $b} on the wall";
say "{b $b}";
say "Take one down, pass it around";
say "{b $b-1} on the wall";
say "";
}
sub b($b) {
"$b bottle{'s' if $b != 1} of beer";
}
This is the error from the compiler log:
Compiling.
Emitting javascript.
Finished compilation unit at pos 320 of 320
Error:
{}
Compilation aborted.
Why does this program not compile?
The text was updated successfully, but these errors were encountered:
I tried to run this program with the Perl6 compiler, but it won't compile:
This is the error from the compiler log:
Why does this program not compile?
The text was updated successfully, but these errors were encountered: