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
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;
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>.
is negative index not allowed in perl6?
i tried
my @test = (1 .. 20);
@test[-1].say;
OUTPUT
Use of uninitialized value
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