perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] Apache::Reload and touch files.
Date Wed, 07 May 2003 22:49:55 GMT
Dmitri Tikhonov wrote:
> In both 1.99_08 (the version I'm using) and in current version of
> mod_perl, Apache::Reload contains these lines:
>  
>         $TouchModules = <$sym>;
>         chomp $TouchModules;
> 
> The documentation on perl.apache.org states that 'touch /tmp/somefile'
> will reload modules on next request.  However, if the file is touched
> and is empty, the next request produces an internal server error and
> this message in the log file:
>  
> [Wed May 07 13:06:42 2003] [error] [client 192.168.1.105] Use of
> uninitialized value in scalar chomp at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/Reload.pm line 66.
> 
> 'echo " " > /tmp/somefile' works fine.
>  
> The question is, is this a bug in documentation or in implementation?
>  
>   - Dmitri.
>  
> P.S.  Linux 2.4.21pre5, Perl 5.6.1.

Are you sure that this is Apache::Reload distributed from mp2? What's its 
version? the one comes with mp2 has its version 0.08

In any case, it's a pure perl code, so you should be able to easily debug it 
and send a fixing patch if it's really the problem.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message