Re: negative index in perl6 array

2009-06-19 Thread Aruna Goke
Chas. Owens wrote: On Sat, Jun 20, 2009 at 00:58, Aruna Goke wrote: is negative index not allowed in perl6? i tried my @test = (1 .. 20); @test[-1].say; OUTPUT Use of uninitialized value You have to say @test[*-1].say; now http://perlcabal.org/syn/S09.html

negative index in perl6 array

2009-06-19 Thread Aruna Goke
is negative index not allowed in perl6? i tried my @test = (1 .. 20); @test[-1].say; OUTPUT Use of uninitialized value

Re: the file slurping is not working

2009-06-05 Thread Aruna Goke
Carl Mäsak wrote: Aruna (>): I tested the below code on parrot-1.1.0 and it read all the lines in the file and tested same code on the latest git update (4th June 2009), it outputs only the first line. That's what C<$file.get> does -- it gives you one line per default. You want C<$file.lines>.

the file slurping is not working

2009-06-05 Thread Aruna Goke
I tested the below code on parrot-1.1.0 and it read all the lines in the file and tested same code on the latest git update (4th June 2009), it outputs only the first line. #!/usr/bin/perl6 use v6; my $fname = 'README'; if my $file = open($fname, :r) { for $file.get-> $line { say $line;

installing pugs on windows xp.. I need to get it working.

2008-07-15 Thread Aruna Goke
Can somebody give me a working link on how to installs pugs or parrot on win xp? I have downloaded from http://jnthn.net/perl6/ both http://jnthn.net/perl6/pugs-win32.zip http://jnthn.net/perl6/parrot-win32.zip after extracting the pugs-win32.. I tried to double-click on pugs.exe but I got the