# New Ticket Created by  Philippe de Rochambeau 
# Please include the string:  [perl #112632]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112632 >



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