NAME

Inline::Perl - Inline module for another Perl interpreter

VERSION

This document describes version 0.01 of Inline::Perl, released December 24, 2004.

SYNOPSIS

use Inline Perl => q{
    sub set_x { $::x = $_[0] }
    sub get_x { $::x }
};

set_x(1);
$::x = 2;
print get_x(); # 1

DESCRIPTION

This module allows you to add blocks of Perl code to your Perl scripts and modules. This allows you to run them in another interperter, and then examine the results.

All user-defined procedures in the inlined Perl code will be available as normal subroutines; global variables are not exported.

Objects, classes and procedures may also be imported by passing them as config parameters to use Inline. See Inline for details about this syntax.

For information about handling another Perl interperter, please see the PerlInterp distribution on CPAN.

SEE ALSO

Perl

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

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

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