CGI::Bus::psp - Perl Script Processor CGI::Bus subobject
use CGI::Bus; $s =CGI::Bus->new(); $s->userauthopt; $s->psp->evalf(filename); Or directly in mixed CGI/HTML page: #!perl -w use vars qw($s); $s =do("config.pl"); $s->userauthopt; $s->psp->evalf($0) __END__ <!DOCTYPE html ....
Why? - It is very simple.
This module is a very simple and small HTML/Perl Script Processor CGI::Bus subobject. Formatted like ASP HTML file is converted to Perl subroutine and evaluated. HTML is converted to series of print calls. <% perl expr %> tags are converted to print(perl expr). <SCRIPT > tags are considered as Perl code. Script language attribute is observed.
print
See CGI::Bus::Base for inherited slots and methods.
None
Evaluate Perl text. 'e' option is to produce embeddable HTML without headers. Evaluation context is CGI::Bus::evalsub(application object, options string, filename,...)
CGI::Bus::evalsub
Evaluate HTML/Perl script file. Uses parse and eval.
parse
eval
Parse HTML/Perl script file to Perl text. 'e' option is to produce embeddable HTML without headers.
[filename, base] filename syntax may now be used to generate '<base href...>' tag
parse omits text given before m/<(!DOCTYPE|html|head)/i, so mixed CGI/HTML page files may be parsed. Synopsis changed to reflect this feature.
Implemented and Documented.
Perl code caching?
Andrew V Makarow <makarow at mail.com>
7 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
To install CGI::Bus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Bus
CPAN shell
perl -MCPAN -e shell install CGI::Bus
For more information on module installation, please visit the detailed CPAN module installation guide.