-
-
16 Apr 2014 18:33:32 UTC
- Distribution: Embperl
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (9)
- Testers (66 / 28 / 0)
- Kwalitee
- License: unknown
- Activity
24 month- Tools
- Download (768.94KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Gerald Richter <richter at embperl dot org>
- Dependencies
- File::Spec
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Embperl::Inline - Inline Embperl code in Perl modules
SYNOPSIS
package MyTest ; use Embperl::Inline ; __EMBPERL__ [$ sub foo $] [- $a = 99 ; -] <p>a=[+ $a +]</p> [$endsub$]
DESCRIPTION
Embperl::Inline allows you to inline Embperl code in Perl modules. The benfit is that you are able to install it like a normal Perl module and it's available site wide, without the need for any program to know where it resides.
Also it allows you to add markup sections to Perl objects and calling (and overriding it) like normal Perl methods.
The only thing that needs to be done for using it, is to use Embperl::Inline and to place your Embperl code after the
__EMBPERL__
keyword.After the use Embperl::Inline it is possible to specify Embperl parameters e.g.:
use Embperl::Inline { options => &Embperl::Constant::optKeepSpaces };
Author
G. Richter (richter at embperl dot org)
See Also
perl(1), Embperl
Module Install Instructions
To install Embperl, copy and paste the appropriate command in to your terminal.
cpanm Embperl
perl -MCPAN -e shell install Embperl
For more information on module installation, please visit the detailed CPAN module installation guide.