Inline::Perl - Inline module for another Perl interpreter
This document describes version 0.01 of Inline::Perl, released December 24, 2004.
use Inline Perl => q{ sub set_x { $::x = $_[0] } sub get_x { $::x } }; set_x(1); $::x = 2; print get_x(); # 1
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.
use Inline
For information about handling another Perl interperter, please see the PerlInterp distribution on CPAN.
Perl
Autrijus Tang <autrijus@autrijus.org>
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
To install Inline::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Inline::Perl
CPAN shell
perl -MCPAN -e shell install Inline::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.