ANNOUNCE: Apache::AuthCookie 3.09

2006-05-03 Thread Michael Schout
The uploaded file Apache-AuthCookie-3.09.tar.gz has entered CPAN as file: $CPAN/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.09.tar.gz size: 34908 bytes md5: 8bfd8834d2b161f2e28c908c27eccf10 Please allow a few hours for the file to mirror across CPAN :). Apache::AuthCookie allows you

The famous 3221225477 exit status

2006-05-03 Thread Foo Ji-Haw
Hi all, On my mp2 machine I see a lot of this exit status code generated. And when it does, my Apache2 stop serving for a while (I guess it's just restarting). Goggling this number seems to indicate that a lot of people are experiencing this problem, but nobody really seems to have a solutio

Malformed header problem

2006-05-03 Thread ciccio4242
Hi, I'm trying to run with mod_perl the following script: #!/usr/bin/perl print "\n"; print "\n\n"; print "\n"; print "\n"; print "\n"; print"\n"; print "\n"; print "HELLO\n"; print "\n"; print "\n"; IMHO that SHOULD work, but it doesn't: I receive from error.log: [Wed May 03 18:29:36 2

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Philip M. Gollucci
Matthew wrote: None of my subroutines are prototyped. They all follow the format: sub () { } As Perrin/Randal said, thats a prototype of no arguments While I'm on it &foo is different from &foo() The first gets access to the global @_ (aka whatever function foo was called from, it

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Jonathan Vanasco
On May 3, 2006, at 4:59 PM, Matthew wrote: I had a feeling it was Apache::Reload. In the future, we shouldn't need this module as we won't be making daily changes to the code. Thanks a million. -Matthew Apache::Reload is simply amazing for development machines (to the point that I can't

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Matthew
I had a feeling it was Apache::Reload. In the future, we shouldn't need this module as we won't be making daily changes to the code. Thanks a million. -Matthew Perrin Harkins wrote: On Wed, 2006-05-03 at 16:48 -0400, Perrin Harkins wrote: On Tue, 2006-05-02 at 17:43 -0500, Matthew wrote: H

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Perrin Harkins
On Wed, 2006-05-03 at 16:48 -0400, Perrin Harkins wrote: > On Tue, 2006-05-02 at 17:43 -0500, Matthew wrote: > > Hey gang, > > When I actually execute the code in web browser > > (http://www.mydomain.com/test/tester), I get this in my apache error_log: > > > > [Tue May 2 23:33:57 2006] v2.pm:

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Perrin Harkins
On Tue, 2006-05-02 at 17:43 -0500, Matthew wrote: > Hey gang, > When I actually execute the code in web browser > (http://www.mydomain.com/test/tester), I get this in my apache error_log: > > [Tue May 2 23:33:57 2006] v2.pm: Subroutine handler redefined at > /home/me/public_html/confer//mypac

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Matthew
Nope. Didn't realize that () was prototyped. I should note that I pass variables to the functions like so: if($cmd eq "login") { &doLogin($q->param("username"), $q->param("password")); } sub doLogin() { my ($username, $password) = @_; if($username eq "you" && $password eq "me") { pri

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Randal L. Schwartz
> "Matthew" == Matthew <[EMAIL PROTECTED]> writes: Matthew> None of my subroutines are prototyped. They all follow the format: Matthew> sub () { Matthew> Matthew> } You realize that's a prototype? :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Matthew
None of my subroutines are prototyped. They all follow the format: sub () { } Here are the first few lines of tester.pm and the code for the handler() function. -- package confer::tester; use strict; use warnings;

Re: the dreaded 'subroutine redefined'

2006-05-03 Thread Philip M. Gollucci
PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off PerlRequire /home/me/public_html/confer/startup.pl SetHandler perl-script PerlResponseHandler mypackage::tester Can you show some of the file's sub foo { lines ?