perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Tikhonov" <>
Subject [mp2] Apache::Reload and touch files.
Date Wed, 07 May 2003 17:27:17 GMT
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 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] Use of
uninitialized value in scalar chomp at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/ 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.
View raw message