Using Apache::Util outside mod_perl

1999-11-01 Thread John Siracusa
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

Re: Using Apache::Util outside mod_perl

1999-11-01 Thread John Siracusa
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

Re: Using Apache::Util outside mod_perl

1999-11-01 Thread Tobias Hoellrich
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

Re: Using Apache::Util outside mod_perl

1999-11-01 Thread Randal L. Schwartz
"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

Re: Using Apache::Util outside mod_perl

1999-11-01 Thread Doug MacEachern
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.