View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
☻ 唐鳳 ☺ > v6-alpha > v6



Annotate this POD


New  1
Open  3
View/Report Bugs
Module Version: 0.006   Source  


v6 - An experimental Perl 6 implementation


Command line:

    $ perl -Ilib lib/ -e 'for 1,2,3 -> $x { say $x }'


    $ perl -Ilib lib/ --compile-only -e '<hello>.say;'

Script or module:

    # file:
    use v6-alpha;
    "hello, world".say;

    $ perl


The v6 module is a front-end to the experimental Perl6-to-Perl5 compiler.

The current state of this compiler implementation only provides a small sample of Perl 6 syntax and semantics.

Other Perl 6 implementations

The Pugs/Haskell Perl 6 is currently the most complete implementation. Pugs currently has some issues with Perl 5 interoperability.

Parrot Perl 6 aims to become the best performing implementation, but currently is less complete than both and Pugs/Haskell.

Although running requires the installation of a lot of Perl 5 modules, it is completely independent of Pugs or Parrot.


- The source file header must be valid perl5 and perl6 code.

This is a valid header:

    use v6-alpha;

* it executes perl5

* perl5 will call the module.

This is an invalid header:

    use v6;

* it tells perl5 to execute /usr/bin/pugs.

* it tells perl5 that Perl v6.0.0 required.

- The Pugs::Compiler::Rule module must be properly installed.

An improperly installed Pugs::Compiler::Rule module would prevent the Perl 6 compiler from bootstrapping.

If that is the case, running Makefile.PL and make in Pugs::Compiler::Rule should fix the problem.

- The perl5 executable must have PMC support.

PMC support is required for loading precompiled Perl 6 files.

If you see the error below, it may happen that your perl was compiled without PMC support.

  Can't locate object method "compile" via package "Pugs::Compiler::Perl6"

Please see


The Pugs Team <>.


The Perl 6 homepage at

- the Perl 6 Synopsis:

The Pugs homepage at

The Parrot homepage at


Copyright 2006 by Flavio Soibelmann Glock and others.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


syntax highlighting: