v6 - A Perl 6 implementation


v6 documentation Contained in the v6 distribution.

Index


Code Index:

NAME

Top

v6 - A Perl 6 implementation

SYNOPSIS

Top

    # file: hello_world.pl
    use v6-perlito;
    "hello, World".say;

    $ perl hello_world.pl

DESCRIPTION

Top

The v6 module is a front-end to the "Perlito" compiler.

Alternate backend modules can be installed. For example, the "Mildew" compiler can be used as:

  use v6-mildew;

REQUIREMENTS

Top

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

This is a valid header:

    #!/usr/bin/perl
    use v6-perlito;

* it executes perl5

* perl5 will call the v6.pm module.

This is an invalid header:

    #!/usr/bin/pugs
    use v6;

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

* it would tell perl5 that Perl v6.0.0 required.

AUTHORS

Top

The Pugs Team <perl6-compiler@perl.org>.

SEE ALSO

Top

The Perl 6 homepage at http://perl6.org.

The Perlito compiler at http://github.com/fglock/Perlito.

COPYRIGHT

Top


v6 documentation Contained in the v6 distribution.

package v6;
$v6::VERSION = '0.042';
use strict;

sub import {
    my ($module,@args) = @_;
    my $submodule = $args[0];
    if ($submodule =~ /^-/) {
        $submodule =~ s/^-//;
        $submodule = 'v6::'.$submodule;
        eval("require $submodule");
        die if $@;
        $submodule->import(@args);
    }
}

1;