Howdy,

Last time I checked, each line of the perl6 REPL had a separate scope,
so this should work:

$ ./perl6
> my $x = 8; say $x

Duke


On Tue, Mar 9, 2010 at 9:42 AM, Kiffin Gish <kiffin.g...@planet.nl> wrote:
> I want to play around with perl6 and see what it can do.
>
> $ cd rakudo
> $ ./perl6
>>  my $x = 8
>> say $x
> Symbol '$x' not predeclared in <anonymous>
>
> How can I define variables and use them later?
>
> --
> Kiffin Gish <kiffin.g...@planet.nl>
> Gouda, The Netherlands
>
>
>



-- 
Jonathan "Duke" Leto
jonat...@leto.net
http://leto.net

Reply via email to