Embperl::Inline(3pm)

Embperl::Inline3pm

Inline embperl code in perl modules

Usage

    package MyTest ;
    
    use Embperl::Inline ;
    
    __EMBPERL__
    
    [$ sub foo $]
    
    [-
    $a = 99 ;
    -]
    
    <p>a=[+ $a +]</p>
    [$endsub$]

Overview

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 };

Releases

8 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12

Author

G. Richter (richter at embperl dot org)

From libembperl-perl 2.5.0-17 in Debian 12 (Bookworm). Parsed by carta from the page's man source.