Re: Request for Information

2006-09-01 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Sep 01, 2006 at 04:35:38PM -0400, dhaval gada wrote: > Hi, > I am not using any references to subroutines in the session data. > > And if some objects are implemented in Perl as references to subroutines, > and > some data structures include

Re: Request for Information

2006-09-01 Thread Perrin Harkins
On Fri, 2006-09-01 at 16:35 -0400, dhaval gada wrote: > I am not using any references to subroutines in the session data. Maybe you're trying to store a DBI handle. > And if some objects are implemented in Perl as references to > subroutines, and > some data structures include also subroutine

HTTP Proxy using MOD_PERL

2006-09-01 Thread Sumit Shah
Hello, I am very new to MOD_PERL. I am trying to a create a proxy in Apache using MOD_PERL. I have a perl script that takes an HTTP request parameter as input and returns appropriate result. I am trying to: --> get a handle to the HTTP request object, --> filter it based on static/dynamic content

Re: Request for Information

2006-09-01 Thread dhaval gada
Hi,   I am not using any references to subroutines in the session data.   And if some objects are implemented in Perl as references to subroutines, andsome data structures include also subroutine references, then does it imply that no session management is possible with objects in embperl

Re: Getting current url from request?

2006-09-01 Thread Bas Schulte
Hi, I sort of hoped I could simply get it directly from the Apache request object but apparently, I can't. Turns out I had to have a CGI instance anyway so I'm using $cgi->url () now, works fine.

Re: Getting current url from request?

2006-09-01 Thread Philip M. Gollucci
David Nicol wrote: On 9/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: $r-> the_request will give you the HTTP header Are not the standard CGI environment vars still available in modperl? This code snip will dump them for your inspection: print join "\n", "", (map {"$_ is $ENV{$_}"} sort k

Re: Getting current url from request?

2006-09-01 Thread David Nicol
On 9/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: $r-> the_request will give you the HTTP header Are not the standard CGI environment vars still available in modperl? This code snip will dump them for your inspection: print join "\n", "", (map {"$_ is $ENV{$_}"} sort keys %ENV),""; --

Re: Getting current url from request?

2006-09-01 Thread Jonathan Vanasco
On Sep 1, 2006, at 1:53 PM, Bas Schulte wrote: I may be getting a bit rusty but I can't figure out which method to use to get at the current url from the Apache request object. $r-uri () gives me the path but not the schema, host and port. $r->unparsed_uri will give you the GET args $r-> th

Getting current url from request?

2006-09-01 Thread Bas Schulte
Hi, I may be getting a bit rusty but I can't figure out which method to use to get at the current url from the Apache request object. $r-uri () gives me the path but not the schema, host and port. Looking through perldoc Apache doesn't really give me a clue. Anyone?

Re: Memory Usage

2006-09-01 Thread Jonathan Vanasco
On Sep 1, 2006, at 11:15 AM, Daniel B. Hemmerich wrote: We are concerned about how much memory we are using now that we are moving to modperl. Are there any good tools/procedures that we could use to determine how much memory our application is currently using – and then using that as a

Re: Memory Usage

2006-09-01 Thread Tobias Kremer
I suggest taking a look at the excellent mod_perl performance guide: http://perl.apache.org/docs/1.0/guide/performance.html -- Tobias Zitat von "Daniel B. Hemmerich" <[EMAIL PROTECTED]>: > We are concerned about how much memory we are using now that we are moving > to modperl. > > > > Are ther

Memory Usage

2006-09-01 Thread Daniel B. Hemmerich
We are concerned about how much memory we are using now that we are moving to modperl.   Are there any good tools/procedures that we could use to determine how much memory our application is currently using – and then using that as a benchmark, determine how much more or less memory we ar

RE: Request for Information

2006-09-01 Thread Gerald Richter
Hi, > I did try using %udat initially, but it throws the foll error: > > Can't store CODE items at blib/lib/Storable.pm (autosplit > into blib/lib/auto/Storable/_freeze.al) line 282, at > /usr/local/ext/perl/5.8.0/lib/site_perl/Apache/Session/Seriali > ze/Storable.pm line 21 > > That happen

Re: Request for Information

2006-09-01 Thread dhaval gada
Hi, I did try using %udat initially, but it throws the foll error:   Can't store CODE items at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al) line 282, at /usr/local/ext/perl/5.8.0/lib/site_perl/Apache/Session/Serialize/Storable.pm line 21 Thanks & Best Regards, -Dhaval.  

Re: Receiving user input

2006-09-01 Thread Kjetil Kjernsmo
On Thursday 31 August 2006 17:17, Daniel B. Hemmerich wrote: > Anyone have a code snippet of a routine that will parse both POST and > GET user input and place it into a hash? Using libapreq, how about something like my %FORM = (); my $req = Apache2::Request->new($r); foreach my $name (