Can I use the Apache::Util functions outside mod_perl? Here's an attempt:
% cat test.pl
use Apache::Util;
print Apache::Util::escape_html('foo');
% perl test.pl
Undefined subroutine Apache::Util::escape_html called at test.pl line 3.
I'd like to have access to the fast URL/HTML escaping
On 11/1/99 12:19 PM, Ken Y. Clark wrote:
I'd like to have access to the fast URL/HTML escaping subroutines
in "regular" perl scripts, if possible.
isn't that functionality available in CGI?
Yes, but AFAIK they're plain perl implementations rather than
stubs for faster C versions.
-John
Ken,
no - mod_perl as glue to the Apache API is required. If you're not running
under mod_perl these won't work for you and you have to use CGI.pm's or
URI's perl only functions.
At 12:19 PM 11/1/99 -0500, Ken Y. Clark wrote:
On Mon, 1 Nov 1999, John Siracusa wrote:
Can I use the
"John" == John Siracusa [EMAIL PROTECTED] writes:
John On 11/1/99 12:19 PM, Ken Y. Clark wrote:
I'd like to have access to the fast URL/HTML escaping subroutines
in "regular" perl scripts, if possible.
isn't that functionality available in CGI?
John Yes, but AFAIK they're plain perl
So you can't use Apache::Util unless you are running Apache.
exactly. but it might be possible with the SHARED_CORE configure option,
that builds libhttpd.so, I've never tried though.