Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP for rakudo
Perl6 Perl
tree: 7a7305cc70

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

v5 - Perl5 for rakudo

v5 will let you run Perl 5 code beside Perl 6 code, like:

use v6;
grammar Foo {
    method bar { ... }

    use v5;
    if( $^O eq 'MSWin32' ) {
        say $0 # Perl 5's special variable for program name

        use 6.0.0;
        multi sub foo(*@args) {

say "Back to Perl 6 on a $*OS box." # $*OS is Perl 6's special variable

The goal is to be able to run all pure-Perl 5 code besides Perl 6. One benefit of this approach (reimplementing Perl 5 with Perl 6's object system) is to be able to pass data/objects easily between both languages. XS will not be supported, since it depends of Perl 5's internal structure.


git clone git://
cd rakudo                        # I assume you already have rakudo installed
patch -i ../v5/rakudo.patch      # this is needed atm and will hopefully go away pretty soon
make install                     # install the patched rakudo
cd ../v5
make install                     # install the Perl5 module


make install                     # build and install everything
make spectest                    # run all tests form roast5 we pass
make fulltest                    # run all tests form roast5, even those we do not pass yet
make test test_file=t/v5/basic.t # run a single test file (using fudge)


perl6 t/v5/basic.t               # run a file that has a `use v5` at the top
perl6 -MPerl5 t/v5/basic.t       # run a file that hasn't
Something went wrong with that request. Please try again.