Chris Dutton wrote:

> Maybe I'm just doing something wrong...
> Then when I try to run perl6, via "perl perl6" to avoid @INC issues, I get:
> 
> "Code must live with a function" 
> 
> Trying to compile hw.p6. 


What does hw.p6 look like? Anyways:

sub main() {
   # your code goes here
   my $a = 1;
   print $a _ "\n";
}


You might have a look at t/compiler


leo





Reply via email to