Inline::Perl - Inline module for another Perl interpreter


Inline-Perl documentation  | view source Contained in the Inline-Perl distribution.

Index


NAME

Top

Inline::Perl - Inline module for another Perl interpreter

VERSION

Top

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

SYNOPSIS

Top

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

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

DESCRIPTION

Top

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

Top

Perl

AUTHORS

Top

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

Top


Inline-Perl documentation  | view source Contained in the Inline-Perl distribution.