v6 - A Perl 6 implementation
# file: hello_world.pl use v6-perlito; "hello, World".say; $ perl hello_world.pl
The v6 module is a front-end to the "Perlito" Perl6 compiler.
v6
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 and perl6 code.
This is a valid header:
#!/usr/bin/perl use v6-perlito;
* it executes perl5
* perl5 will call the v6.pm module.
v6.pm
This is an invalid header:
#!/usr/bin/pugs use v6;
* it tells perl5 to execute /usr/bin/pugs.
/usr/bin/pugs
* it would tell perl5 that Perl v6.0.0 required.
The Pugs Team <perl6-compiler@perl.org>.
The Perl 6 homepage at http://perl6.org.
The Perlito compiler at http://github.com/fglock/Perlito.
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 http://www.perl.com/perl/misc/Artistic.html
To install v6, copy and paste the appropriate command in to your terminal.
cpanm
cpanm v6
CPAN shell
perl -MCPAN -e shell install v6
For more information on module installation, please visit the detailed CPAN module installation guide.