There is a problem with the Rakudo "open" function. A else tree will
never be executed if the open fails. Here is the output from executing
the code snippet:
[gz...@vgerd2 IO]$ ./open_report.p6
Unable to open filehandle from path '/sdfasfda/asfda/asdfa/Ausgabe.txt'
in Main (file , line )
[gz...@v
Hello,
I recently got interested in Perl 6, installed Parrot 2.0.0 and Rakudo
2010-01. Running the code works fine:
$ cat hello.pl
say "Hello, world!"
$ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pl
Hello, world!
However, compiling the code for later use makes problems:
$ perl
2010/1/29 Tadeusz Sośnierz :
> Hello,
> I recently got interested in Perl 6, installed Parrot 2.0.0 and Rakudo
> 2010-01. Running the code works fine:
>
> $ cat hello.pl
> say "Hello, world!"
> $ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pl
> Hello, world!
>
> However, compiling
Hi,
Tadeusz Sośnierz wrote:
> However, compiling the code for later use makes problems:
>
> $ perl6 --target=pir hello.pl > hello.pir
> $ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pir
You should use parrot to turn the .pir file, not the Perl 6 compiler. So try
parrot hello.pi
At present. But the development process has not reached a stage where
compiling the main program produces any real benefit.
By the way, if you have used 'make install', then all you need is
/full/path/to/binary/perl6 scriptfile.p6 [args args args ...]
rather than
parrot /full/path/to/binary/pe
Gerd (>):
> There is a problem with the Rakudo "open" function. [It dies on failure.]
By my understanding, that's one of those known differences between
Rakudo and the spec. (The spec isn't very explicit about whether open
should die or not, but S03 contains the line
my $*OUT ::= open($file, :w
Author: lwall
Date: 2010-01-30 00:59:38 +0100 (Sat, 30 Jan 2010)
New Revision: 29599
Modified:
docs/Perl6/Spec/S07-iterators.pod
Log:
[S07] start to work out relationship of item/slice context
(seems they treat parcels similarly, if not identically...)
Modified: docs/Perl6/Spec/S07-iterators.
Author: lwall
Date: 2010-01-30 01:07:03 +0100 (Sat, 30 Jan 2010)
New Revision: 29600
Modified:
docs/Perl6/Spec/S03-operators.pod
Log:
[S03] add new E operator
Modified: docs/Perl6/Spec/S03-operators.pod
===
--- docs/Perl6/Spec/S0
Darren Duncan wrote on 2010 Jan 23:
pugs-comm...@feather.perl6.nl wrote:
Author: lwall
Date: 2010-01-23 15:43:40 +0100 (Sat, 23 Jan 2010)
New Revision: 29582
As a follow-up to the above, I re-raised the issue on IRC today and got a
response there; I've copied the most relevant portions here