perl-Apache-EmbeddedPerl-Lite - light weight embedded perl parser

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch Official
Package filename perl-Apache-EmbeddedPerl-Lite-0.06-alt1.noarch.rpm
Package name perl-Apache-EmbeddedPerl-Lite
Package version 0.06
Package release alt1
Package architecture noarch
Package type rpm
Homepage -
License -
Maintainer -
Download size 10.34 KB
Installed size 10.34 KB
This modules is a light weight perl parser designed to be used in
conjunction wit mod_perl and Apache 1 or Apache 2. It may be used as a
handler for files containing embedded perl or it may be called as a
subroutine to conditionally parse files of your choosing.
Perl code may be embedded in a file parsed by this module as described
below. Each section of perl code is collected and eval'd as a subroutine that
is passed the two arguments ($classnam,$r) in its input array @_;
Embedded perl should have the following format:
On a line by itself:
{optional whitespace}  <!-- {whitespace} perl
perl code here
{optional whitespace} -->
The beginning and terminating brackets may optionally be followed by a white
space and comments, which will be ignored.
<!--  perl
my($class,$r) = @_;
$r->print("Hello World, I am in package $class\n");
=item * $http_response = handler($classname,$r);
The function "handler" has the prototype:
_handler ($$) : method {
which receives the arguments $class, $r from Apache mod_perl.
input:_class name,_(a scalar, not a ref)
__request handle
return:_Apache response code or undef
handler is not exported.
Expected Codes:
_  0_OK
_404_File Not Found
_500_Server Error
404 could not find, open, etc... file
500 missing closing embedded perl bracket
embedded perl has an error
When a 500 error is returned, a warning will be issued to STDERR providing
details about the error.
A ContentType header will not be sent unless the type is specified as
mod_perl configuration is as follows:
PerlModule Apache::EmbeddedPerl::Lite
<Files *.ebhtml>
SetHandler perl-script
PerlHandler Apache::EmbeddedPerl::Lite
PerlSetVar ContentType text/html
=item * $http_response = embedded($classname,$r,$file,@args);
The function "embedded" is similar to "handler" above except that it does not send any headers.
Headers are the responsibility of the application "handler", or the embedded
@args are optional arguments that may be passed from your handler to embedded.
input:_class name,_(a scalar, not a ref)
__request handle,
__file name
__@args_[optional] appication specific
return:_Apache response code or undef
... at startup or .httaccess ...
use Apache::EmbeddedPerl::Lite qw(embedded);
... in the application handler ...
_if ($r->filename =~ /\.ebhtml$/) {
..._  set content type, etc...
_  $response = embedded(__PACKAGE__,$r,$r->filename);
_} else {
_  $response = embedded(__PACKAGE__,$r,$someotherfile);
_return $response if $response; # contains error
..._  do something else


Package Version Repository
perl-Apache-EmbeddedPerl-Lite All All


Name Value
/usr/share/perl5 -
perl(Apache2/ -
perl(Apache2/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Apache/EmbeddedPerl/ = 0.060
perl-Apache-EmbeddedPerl-Lite = 0.06-alt1


Type URL
Binary Package perl-Apache-EmbeddedPerl-Lite-0.06-alt1.noarch.rpm
Source Package perl-Apache-EmbeddedPerl-Lite-0.06-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Apache-EmbeddedPerl-Lite rpm package:
    # sudo apt-get install perl-Apache-EmbeddedPerl-Lite



See Also

Package Description
perl-Apache-Emulator-0.06-alt1.noarch.rpm perl module Apache-Emulator
perl-Apache-FakeCookie-0.08-alt1.noarch.rpm fake request object for debugging
perl-Apache-FakeTable-0.06-alt1.noarch.rpm Pure Perl implementation of the Apache::Table interface
perl-Apache-Hadoop-WebHDFS-0.04-alt1.noarch.rpm interface to Hadoop's WebHDS API that supports GSSAPI/SPNEGO (secure) access
perl-Apache-Hendrix-0.3.0-alt1.noarch.rpm Provides a route-to-sub based web framework
perl-Apache-Htgroup-1.23-alt1.noarch.rpm Manage Apache htgroup files
perl-Apache-Layer-1.07-alt2.noarch.rpm Layer content tree over one or more others
perl-Apache-Log-Parser-0.02-alt1.noarch.rpm Parser for Apache Log (common, combined, and any other custom styles by LogFormat)
perl-Apache-Log-Parser-scripts-0.02-alt1.noarch.rpm Apache-Log-Parser scripts
perl-Apache-LogRegex-1.71-alt1_12.noarch.rpm Parse a line from an Apache logfile into a hash
perl-Apache-MP3-4.00-alt1.noarch.rpm Generate streamable directories of MP3 and Ogg Vorbis files
perl-Apache-Profiler-0.10-alt2.noarch.rpm profiles time seconds needed for every request
perl-Apache-RandomImage-0.3-alt2.noarch.rpm Lightweight module to randomly display images from a directory
perl-Apache-Session-Browseable-1.3.4-alt1_1.noarch.rpm Add index and search methods to Apache::Session
perl-Apache-Session-CacheAny-0.03-alt1.noarch.rpm use Cache::* for Apache::Session storage