ASP4
view release on metacpan or search on metacpan
lib/ASP4/Server.pm view on Meta::CPAN
Eg:
<tag/>
Becomes:
<tag/>
=head2 URLEncode( $str )
Converts a string for use within a URL.
eg:
test@test.com
becomes:
test%40test.com
=head2 URLDecode( $str )
Converts a url-encoded string to a normal string.
eg:
test%40test.com
becomes:
test@test.com
=head2 MapPath( $file )
Converts a relative path to a full disk path.
eg:
/contact/form.asp
becomes:
/var/www/mysite.com/htdocs/contact/form.asp
=head2 Mail( %args )
Sends email - uses L<Mail::Sendmail>'s C<sendmail(...)> function.
=head2 RegisterCleanup( \&code, @args )
The supplied coderef will be executed with its arguments as the request enters
its Cleanup phase.
See L<http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler> for details.
=head2 Error( [%args] )
Calling C<<$Server->Error()>> without arguments will use the value of C<$@> and
generate a L<ASP4::Error> object from it, then pass it to the C<run(...)> method
of your C<<$Config->errors->error_handler>> for processing.
Please take a look at the documentation for L<ASP4::Error>, L<ASP4::ErrorHandler>
and L<ASP4::ErrorHandler::Remote> for details on how errors are handled.
=head1 BUGS
It's possible that some bugs have found their way into this release.
Use RT L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=ASP4> to submit bug reports.
=head1 HOMEPAGE
Please visit the ASP4 homepage at L<http://0x31337.org/code/> to see examples
of ASP4 in action.
=cut
( run in 0.826 second using v1.01-cache-2.11-cpan-d8267643d1d )