perl-Apache-EmbeddedPerl-Lite-0.06-alt1.noarch.rpm


Advertisement

Description

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

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Apache-EmbeddedPerl-Lite
Package version 0.06
Package release alt1
Package architecture noarch
Package type rpm
Installed size 10.34 KB
Download size 10.34 KB
Official Mirror ftp.altlinux.org
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.
i.e.
<!--  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
follows:
_PerlSetVar_ContentType_text/html
mod_perl configuration is as follows:
PerlModule Apache::EmbeddedPerl::Lite
<Files *.ebhtml>
SetHandler perl-script
PerlHandler Apache::EmbeddedPerl::Lite
PerlSetVar ContentType text/html
</Files>
=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
code.
@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

Alternatives

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

Requires

Name Value
/usr/share/perl5 -
perl(Apache2/RequestIO.pm) -
perl(Apache2/RequestUtil.pm) -
rpmlib(PayloadIsLzma) -

Provides

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

Download

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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/share/doc/perl-Apache-EmbeddedPerl-Lite-0.06/Changes
/usr/share/doc/perl-Apache-EmbeddedPerl-Lite-0.06/README
/usr/share/perl5/Apache/
/usr/share/perl5/Apache/EmbeddedPerl/Lite.pm

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-FastForward-1.1-alt1.noarch.rpm new age of spreadsheet web services
perl-Apache-FilteringProxy-0.1-alt1.noarch.rpm perl module Apache-FilteringProxy
perl-Apache-HEADRegistry-0.01-alt1.noarch.rpm Apache::Registry drop-in for HEAD requests
perl-Apache-Hadoop-WebHDFS-0.04-alt1.noarch.rpm interface to Hadoop's WebHDS API that supports GSSAPI/SPNEGO (secure) access
perl-Apache-HeavyCGI-0.013302-alt1.noarch.rpm Framework to run complex CGI tasks on an Apache server
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-JavaScript-DocumentWrite-0.02-alt1.noarch.rpm replaces document as javascript document.write
perl-Apache-LangURI-0.19-alt1.noarch.rpm Rewrite Accept-Language headers from URI path and back
perl-Apache-Layer-1.07-alt1.noarch.rpm Layer content tree over one or more others
perl-Apache-Lint-0.10-alt1.noarch.rpm Apache wrapper around HTML::Lint
perl-Apache-Log-Parser-0.02-alt1.noarch.rpm Parser for Apache Log (common, combined, and any other custom styles by LogFormat)
Advertisement
Advertisement