hello world in perl6 with parrot

$ mkdir -p /usr/src/svn/perl/parrot && \
  cd /usr/src/svn/perl/parrot/ && \
  svn co https://svn.perl.org/parrot/trunk && \
  cd trunk && \
  perl Makefile.PL && \
  make && \
  cd languages/perl6/ && \
  make && \
  ../../parrot perl6.pbc
say "hello world"
hello world
^D
$ perl -e '
  open my $helloFH, q{>}, "hello.p6";
  my $newline="
";
print $helloFH (join("$newline$newline", "#!$ENV{PWD}/../../parrot $ENV{PWD}/perl6.pbc",
                       "say \"hello world\"","",
                       )
                  );
  close $helloFH;
' && chmod u+x hello.p6 && ./hello.p6
hello world
$
This entry was posted in Free Software, perl, pre-release, Software, Unix. Bookmark the permalink.

Leave a Reply