-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
Here is the error message I see in the error log file:
[Tue Aug 12 14:53:30 2003] [error] [client 10.0.3.131] Pseudo-hashes are deprecated at /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/ModPerl/RegistryPrefork.pm line 23.!
I am using the RegistryPrefork module described on
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends
The line it seems to be complaining about is:
my $file = @_ == 2 ? $_[1] : $_[0]->{FILENAME};
All code that isn't mine is that shipped with RedHat 9.0.
As you would assume, I am trying to use mod_perl with Apache 2.0. My code does
use relative addresses and I was hoping to avoid having to go into the code to change all the relative addresses to absolutes. It has be working successfully with mod_perl 1.0 on Apache 1.3. I tried looking on the web for someone running into a similar problem, but was unable to find any such issue.
Here are the contents of my /etc/httpd/conf.d/perl.conf file: Alias /exe /var/www/cgi-bin #<Directory /var/www/perl> <Directory /var/www/cgi-bin> SetHandler perl-script PerlHandler ModPerl::RegistryPrefork PerlOptions +ParseHeaders Options +ExecCGI </Directory>
Thank you for your assistance, I appreciate it.
Looks like it's a problem in your code. As you didn't supply a simple script to reproduce the problem, I wrote one, but I couldn't reproduce it. Here is what I was testing with:
# require.pl #----------- my $r = shift;
print "Content-type: text/html\n\n";
my $file = "./require.pl";
print "can't find $file\n" unless -e $file;
print "$file is found\n";
> [Tue Aug 12 14:53:30 2003] [error] [client 10.0.3.131] Pseudo-hashes are
> deprecated at
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/ModPerl/RegistryPrefork.pm
> line 23.!
Could it be that something in your code triggers the problem? Can you reproduce the problem with my test script?
In any case it's should be possible to rewrite the code to not make it think that it's a pseudo-hash (which it is not), but without being able to reproduce the problem I'm not sure how.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
