☺唐鳳☻
and 1 contributors

NAME

pugs - Pragma for using Perl 6 inside Perl 5

SYNOPSIS

    #!/usr/bin/perl
    use pugs;   # Here is some Perl 6 code...
    sub postfix:<!> { [*] 1..$_ }
    sub sum_factorial { [+] 0..$_! }
    no pugs;    # Here is some Perl 5 code...
    print sum_factorial(3); # 21

DESCRIPTION

The pugs module lets you put Perl 6 code in Perl 5 source code after a line of:

    use pugs;

To switch back to Perl 5:

    no pugs;

SEE ALSO

Perl6::Pugs

AUTHOR

Brian Ingerson <INGY@cpan.org>

COPYRIGHT

Copyright (c) 2005. Brian Ingerson. All rights reserved.

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.