RE: conditional get

2002-10-25 Thread Kyle Oppenheim
I assume you are running this script under Apache::Registry (since your URLs have .pl extensions). Apache::Registry compiles your code into a subroutine and runs it using this code: my $old_status = $r->status; my $cv = \&{"$package\::handler"}; eval { &{$cv}($r, @_) } if $r->seqno;

Re: Thoughts on Mason?

2002-10-25 Thread Peter J. Schoenster
On 24 Oct 2002 at 15:13, Shannon Appelcline wrote: > I see there's a new book coming out from O'Reilly on "mason", which > seems to be perl integrated into web pages and claims to support > mod_perl. > > http://www.masonbook.com/ > > Any thoughts on mason from this esteemed community? I've neve

conditional get

2002-10-25 Thread Cristóvão Dalla Costa
Hi, I'm trying to get my script to work with conditional get, however, when the browser should use the local copy it doesn't display anything, just telling me that the image's broken. I get the image from a database, the snippet that sends it is this: $R->content_type ($data {mimetype}); $R->se

RE: Making a module-It can't be this hard.

2002-10-25 Thread Per Einar Ellefsen
At 00:01 26.10.2002, Robert Covell wrote: I have read that link you provided, thanks. The modules I have declared do contain a package name. Is it not possible or easy to just use/require/include a pl or pm file that contains a set of function for me to reuse. Is this a valid pm and pl file?

RE: Making a module-It can't be this hard.

2002-10-25 Thread Robert Covell
I have read that link you provided, thanks. The modules I have declared do contain a package name. Is it not possible or easy to just use/require/include a pl or pm file that contains a set of function for me to reuse. Is this a valid pm and pl file? package Test; sub DisplaySection {

Re: Making a module-It can't be this hard.

2002-10-25 Thread Perrin Harkins
Robert Covell wrote: I simply want to make a module so I can reuse a common header instead of manually changing each page. Under mod-perl how do you simply create a module that I can use/require/include that I can call a subroutine/function to generate some html based on the page you are on. It

Making a module-It can't be this hard.

2002-10-25 Thread Robert Covell
I simply want to make a module so I can reuse a common header instead of manually changing each page. Under mod-perl how do you simply create a module that I can use/require/include that I can call a subroutine/function to generate some html based on the page you are on. It works 5 out of 10 time

Re: [RFC] Apache-GeoIP module

2002-10-25 Thread Richard Clarke
My IP is from the netherlands apparently :( Can't even get quality british IP's these days... sheesh Ric(England).

Re: [RFC] Apache-GeoIP module

2002-10-25 Thread darren chamberlain
* Randy Kobes <[EMAIL PROTECTED]> [2002-10-25 12:01]: > There are a couple of modules on CPAN - Geo::IP and Geo::Mirror - > that provide a general Perl interface to the GeoIP library. Oh. I should have checked; sorry about that! * Michael Schout <[EMAIL PROTECTED]> [2002-10-25 11:42]: > darren c

Re: [RFC] Apache-GeoIP module

2002-10-25 Thread Randy Kobes
On Fri, 25 Oct 2002, darren chamberlain wrote: > * Randy Kobes <[EMAIL PROTECTED]> [2002-10-17 17:01]: > > I've placed at > > ftp://theoryx5.uwinnipeg.ca/pub/other/Apache-GeoIP-0.26.tar.gz > > a package providing a mod_perl interface to the GeoIP library, > > which is used to look up in a databas

[PATCH] Apache::Session

2002-10-25 Thread Enrico Sorcinelli
Hi Jeffrey, I've found a little bug in clean method of Apache::Session::Lock::File when it checks lockfiles last access time. In effects the result of the expression (file ./Session/Lock/File.pm, line 136) (stat($dir.'/'.$file))[8] - $now is always negative and lock dir cleanup isn't done

Re: [RFC] Apache-GeoIP module

2002-10-25 Thread Michael Schout
darren chamberlain wrote: One thing I'd add if you do decide to use the Geo::IP module, it does not behave as documented if it does not find a match. The docs say it returns "undef", but in fact it returns the string "--". The attached patch fixes that problem. I've sent the patch to the GeoI

Re: [RFC] Apache-GeoIP module

2002-10-25 Thread Michael Schout
darren chamberlain wrote: attached to Apache. I'd like to see, in addition to the Apache stuff, a generic GeoIP library that can be used from outside Apache, like in log-eating scripts. You mean like this? http://search.cpan.org/author/TJMATHER/Geo-IP-0.26/lib/Geo/IP.pm :) Mike

RE: [RFC] Apache-GeoIP module

2002-10-25 Thread Adam Nelson
I agree. Is there a cogent reason why so much stuff is under Apache? Apache doesn't seem like a proper category. WWW might be better for web-specific stuff, but for this, it seems like geo is the clear module directory it should be in: http://www.cpan.org/modules/by-module/Geo/ Does Apache-GeoIP

Re: [RFC] Apache-GeoIP module

2002-10-25 Thread darren chamberlain
* Randy Kobes <[EMAIL PROTECTED]> [2002-10-17 17:01]: > I've placed at > ftp://theoryx5.uwinnipeg.ca/pub/other/Apache-GeoIP-0.26.tar.gz > a package providing a mod_perl interface to the GeoIP library, > which is used to look up in a database the country of origin of > an IP address. See http://www

Repost: Where do you specify APR::HOOK... [mp 2.0]

2002-10-25 Thread Erich Oliphant
Hello all, I assume from the lack of response that this is a dumb question :) However, I've still not been able to figure it out. Any help would be greatly appreciated. - Original Message - From: Erich Oliphant To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 11:59 AM Subject: Wher

Re: [ANNOUNCE] StateMachine::Gestinanna 0.06

2002-10-25 Thread James G Smith
"William McKee" <[EMAIL PROTECTED]> wrote: >On 25 Oct 2002 at 1:25, James G Smith wrote: >> This module can be used for some of the same applications as >> CGI::Application. It can also be used outside the web environment. >> It does not handle sessions and other application-dependent >> data mana

[ANNOUNCE] Apache::SessionManager 0.04

2002-10-25 Thread Enrico Sorcinelli
The uploaded file Apache-SessionManager-0.04.tar.gz has entered CPAN as file: $CPAN/authors/id/E/EN/ENRYS/Apache-SessionManager-0.04.tar.gz size: 11197 bytes md5: b6a6e234ddac1b9a4741ab0413aa3013 Changes from previous version - This is a maintenance rel

Re: [ANNOUNCE] StateMachine::Gestinanna 0.06

2002-10-25 Thread William McKee
On 25 Oct 2002 at 1:25, James G Smith wrote: > This module can be used for some of the same applications as > CGI::Application. It can also be used outside the web environment. > It does not handle sessions and other application-dependent > data management. Hi James, I've been following your pos

RE: Problems compiling mod_perl1.27 under IRIX64...

2002-10-25 Thread Wilt, Paul
DeAngelo: Have you run the par command I sent you? par -s -SS -o debug.out -a 128 make This should help figure out which file is missing. Thanks Paul E Wilt Senior Principal Software Engineer Proquest Information and Learning - http://www

Re: Trouble with Apache::DB

2002-10-25 Thread William McKee
On 24 Oct 2002 at 23:35, John Siracusa wrote: > I got a similar error a while back when I tried it with the same versions > of Perl, mod_perl, and apache (but on Mac OS X). I googled a while and all > I could come up with were some posts from internals hackers about perl data > structures getting

RE: Problems compiling mod_perl1.27 under IRIX64...

2002-10-25 Thread Ged Haywood
Hi there, On Thu, 24 Oct 2002, DeAngelo Lampkin wrote: > All the sources are in places I own What compiler are you using? Did you post the output of 'perl -V'? Did you build it yourself? Sorry if you already said, I deleted all the old stuff. 73, Ged.