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.pir

instead.

However it could be that the .pir is missing some loading directives
(known bug), it might be necessary to add

.loadlib 'perl6_group'
.loadlib 'perl6_ops'

at the beginning of the file (see perl6.pir for how it looks).

The good news is that if you compile a module to PIR, you don't need
such extra work.

> I tried to ask for help on #perl6 on freenode, and the following seems
> to work with rakudo compiled with --gen-parrot. Is this some known case
> of separately used Parrot? Am I doing something wrong?

I don't know of any such relation.

Cheers,
Moritz

Reply via email to