Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Dileep Eduri
I added PerlSendHeader Off to config file and removed send_http_header call and print call. Now I am returning $var. Nothing got printed... Thanks Michael Peters wrote: > > > > Dileep Eduri wrote: >> No change. still getting headers in browser. >> this one is pretty annoying. > > Make that

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Dileep Eduri
Previously when I did an appln with CGI::App then I 'return'ed and hence got the pages. This time I am trying with mod_perl and when I was trying to 'return', nothing is getting printed Here is the code, what I got now: sub mode1_sub { my $self = shift; my $req = $self->query(); $req->

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Anthony Gardner
Unless I'm missing sth, have you read the docs? With CGI::Application, you don;t print anything, you just return whatever it is you want 'printed' Dileep Eduri <[EMAIL PROTECTED]> wrote: I have able to solve to maximum extent. rectified all the errors and able to print the result. this time its

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Michael Peters
Dileep Eduri wrote: > No change. still getting headers in browser. > this one is pretty annoying. Make that change to your config, take out the send_http_headers and the CGI->print(). -- Michael Peters Developer Plus Three, LP

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Dileep Eduri
No change. still getting headers in browser. this one is pretty annoying. Michael Peters wrote: > > Dileep Eduri wrote: > >> modified my httpd conf file as follows: >> >> Config File Entry >> >> Alias /perl /docroot/cgi-perl >> PerlModule Apache::Registry >> > > Try adding this line: >

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Michael Peters
Dileep Eduri wrote: > modified my httpd conf file as follows: > > Config File Entry > > Alias /perl /docroot/cgi-perl > PerlModule Apache::Registry > Try adding this line: PerlSendHeader Off >SetHandler perl-script >PerlHandlerApache::Registry >OptionsExecCGI >

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Dileep Eduri
I have able to solve to maximum extent. rectified all the errors and able to print the result. this time its printing the http headers as wellif I turn of http headers, then nothing is getting printed..little weird !!! modified my httpd conf file as follows: Config File Entry Alias /perl /d

Re: building mod_perl-2.0.3 with Perl 5.10.0 (DEVEL32096)

2007-10-26 Thread Dave Mitchell
On Fri, Oct 26, 2007 at 02:57:01PM +0200, Dintelmann, Peter wrote: > mod_perl.c: In function `modperl_sys_term': > mod_perl.c:599: error: `my_perl' undeclared (first use in this function) ... > The referenced line 599 in mod_perl.c reads > > $ perl -nle 'print if $.==599' src/modules/perl/mod_perl

RE: mod_perl MVC framework.

2007-10-26 Thread James Harvey
The way the cool kids do it is to use CGI::Application in conjunction with HTML::Template. http://cgiapp.erlbaum.net/ Haven't done it myself, used HTML::Mason last time, which isn't true MVC. James > -Original Message- > From: Foo JH [mailto:[EMAIL PROTECTED] > Sent: Wednesday, Octobe

Re: mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Michael Peters
Perl Modulator wrote: > I am trying to create mod_perl based appln using CGI::Application and I am > just printing a message. Here is the Perl Module Test.pm, which will be > loaded. Don't use Test.pm as a module name. There's already something in core Perl with that name. It's quite likely that

Re: mod_perl MVC framework.

2007-10-26 Thread Jonathan Vanasco
On Oct 24, 2007, at 10:37 PM, Foo JH wrote: What is fast to cook, good to eat is HTML::Template. No XML, easy abstraction between your web designer and developer. I GREATLY prefer using TAL ( in perl using Petal ) for the V someone finally made an integration for Petal and Catalyst. unfo

mod_perl and CGI::Application.. Strange Behaviour

2007-10-26 Thread Perl Modulator
Hi everyone, Recently I have ported my Apache server to mod_perl and the server is working fine. I can say this by checking the error log and it says: [Fri Oct 26 10:52:16 2007] [notice] SIGHUP received. Attempting to restart [Fri Oct 26 10:52:17 2007] [warn] module mod_php4.c is already added,

building mod_perl-2.0.3 with Perl 5.10.0 (DEVEL32096)

2007-10-26 Thread Dintelmann, Peter
The "make" step of building mod_perl-2.0.3 with Perl 5.10.0 (DEVEL32096) on Solaris 8 in 64-bit fails with the following message: $ make cd "src/modules/perl" && make gcc -I/var/tmp/peter/mod_perl-2.0.3/src/modules/perl -I/var/tmp/peter/mod_perl-2.0.3/xs -I/opt/MISperl/httpd2/include -I/opt/MISp