Fetching contributors…
Cannot retrieve contributors at this time
81 lines (49 sloc) 1.46 KB
package v6;
$v6::VERSION = '0.047';
use strict;
sub import {
my ($module,@args) = @_;
my $submodule = $args[0];
if ($submodule =~ /^-/) {
$submodule =~ s/^-//;
$submodule = 'v6::'.$submodule;
eval("require $submodule");
die if $@;
=head1 NAME
v6 - A Perl 6 implementation
# file:
use v6-perlito;
"hello, World".say;
$ perl
The C<v6> module is a front-end to the "Perlito" Perl6 compiler.
Alternate backend modules can be installed. For example, the "Mildew" compiler can be used as:
use v6-mildew;
- The source file header must be valid perl5 I<and> perl6 code.
This is a valid header:
use v6-perlito;
* it executes perl5
* perl5 will call the C<> module.
This is an invalid header:
use v6;
* it tells perl5 to execute C</usr/bin/pugs>.
* it would tell perl5 that Perl v6.0.0 required.
=head1 AUTHORS
The Pugs Team E<lt>perl6-compiler@perl.orgE<gt>.
=head1 SEE ALSO
The Perl 6 homepage at L<>.
The Perlito compiler at L<>.
Copyright 2006, 2010, 2012 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.
See L<>