Re: Syntax error in mod_perl but not in shell command

2008-05-29 Thread Michael A. Capone
I can reproduce this, exactly as he says below. Some kind of incompatibility between mod_perl and the Switch module? william wrote: Hello, I am running this code print "Content-type: text/html\n\n"; use Switch; $t =1; switch ($t) { case 1 { print "number 1\n"; } }

Re: Syntax error in mod_perl but not in shell command

2008-05-29 Thread Michael Peters
Michael A. Capone wrote: > I can reproduce this, exactly as he says below. Some kind of > incompatibility between mod_perl and the Switch module? Switch is a source filter. source filters == evil. I've heard all kinds of horror stories about using them under mod_perl. If you really need that kin

Re: Syntax error in mod_perl but not in shell command

2008-05-29 Thread Heiko Jansen
As far as I understand it, mod_perl will eval{} the code it's going to run and in the paragraph "Limitations" on http://search.cpan.org/~rgarcia/Switch-2.13/Switch.pm we're told that "Due to the way source filters work in Perl, you can't use Switch inside an string eval.". heiko

Re: Syntax error in mod_perl but not in shell command

2008-05-29 Thread william
On 5/30/08, Heiko Jansen <[EMAIL PROTECTED]> wrote: > As far as I understand it, mod_perl will eval{} the code it's going to > run and in the paragraph "Limitations" on > http://search.cpan.org/~rgarcia/Switch-2.13/Switch.pm > we're told that "Due to the way source filters work in Perl, you can'

File::stat prototype mismatch in error log

2008-05-29 Thread John Gateley
Hi, I'm using Apache2 and mod_perl Server: Apache2/2.0.55 (Ubuntu) mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7 I am getting the following error in /var/log/apache2/error.log Prototype mismatch: sub ModPerl::ROOT::ModPerl::PerlRun::home_yadb_httpd_cgi_2dbin_CoverArtSubmitFile_2ecgi

Re: File::stat prototype mismatch in error log

2008-05-29 Thread Michael Peters
John Gateley wrote: > Prototype mismatch: sub > ModPerl::ROOT::ModPerl::PerlRun::home_yadb_httpd_cgi_2dbin_CoverArtSubmitFile_2ecgi::lstat: > none vs ($) at /usr/share/perl/5.8/Exporter.pm line 65. > at /home/yadb/httpd/cgi-bin/CoverArtSubmitFile.cgi line 13 > > CoverArtSubmitFile.cgi line 13

Re: File::stat prototype mismatch in error log

2008-05-29 Thread John Gateley
On Thu, 29 May 2008 14:33:54 -0400 Michael Peters <[EMAIL PROTECTED]> wrote: > John Gateley wrote: > > > use File::stat; > > So by default it's trying to override the built-in stat() function. Seems to > be > conflicting. Overriding built-in's usually not a good idea. Thanks - I changed it to

Re: Trouble with mod_perl, Archive::Zip and taint mode

2008-05-29 Thread Roberto C . Sánchez
On Tue, May 27, 2008 at 05:48:14PM -0400, Perrin Harkins wrote: > On Sun, May 25, 2008 at 3:45 PM, Roberto C. Sánchez > > [Sun May 25 08:57:35 2008] [error] [asp] [11570] [error] error executing > > code for include /var/www/templates/Photo_page_edit.tmpl: Insecure > > dependency in open while runn