Thank you for bringing this to our attention.

It used to be you could use 'our' like below, but not anymore. Now you 
must declare a variable in any scope you use it, including 'our' 
variables. This is a change that happened with the nom refactor.

Do you have the URL for "the Perl 6 Tutorial"? It needs updating.

Rejecting ticket.

On Fri Apr 27 06:56:04 2012, phi...@free.fr wrote:
> 
> Perl6 version: 2012.04.1
> 
> {
>       our $truc = 'machin';
>       our sub eat() {
>               say "om nom nom";
>       }
> }
> say $truc;
> eat(); 
> 
> [This code comes from the Perl6 Tutorial]
> 
> 
> Result:
> 
> ===SORRY!===
> Variable $truc is not declared
> 
> 
> 
> If you remove say $truc, you will get the following error message:
> 
> Undefined routine '&eat' called (line 15)
> 
> 
> 
> 
> 



Reply via email to