☺唐鳳☻ > Perl6-Pugs-6.2.7 > Inline::Pugs

Download:
Perl6-Pugs-6.2.7.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  0
View/Report Bugs
Module Version: 0.01   Source   Latest Release: Perl6-Pugs-6.2.13

NAME ^

Inline::Pugs - Inline Perl 6 code in Perl 5

SYNOPSIS ^

    use Inline Pugs => '
        sub postfix:<!> { [*] 1..$_ }
        sub sum_factorial { [+] 0..$_! }
    ';
    print sum_factorial(3); # 21

DESCRIPTION ^

Is it Perl 5? Is it Perl 6? It's neither, it's both. It's Inline::Pugs!

The Inline::Pugs module allows you to insert Perl 6 source code directly inline in a Perl 5 script or module.

CAVEATS ^

Currently, only the Perl 5 side can invoke subroutines defined from the Perl 6 side, but not vise versa. This whole thing is just a proof of concept -- use it at your own risk. :-)

AUTHORS ^

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT ^

Copyright 2005 by Autrijus Tang <autrijus@autrijus.org>.

This code is free software; you can redistribute it and/or modify it under the terms of either:

    a) the GNU General Public License, version 2, or
    b) the Artistic License, version 2.0beta5.

For the full license text, please see the GPL-2 and Artistic-2 files under the LICENSE directory in the Pugs distribution.

syntax highlighting: