On Wed, 29 Aug 2001, Stas Bekman wrote:

> it's still not working perfectly, since it has to fish $dump out of the
> file, and I see that it doesn't work for all current files.

you could change the warning header to include:
# __END_OF_HEADER__
or something to make it easier to parse/compare.

and those files don't actually need the extra 1; at the end since
$Apache::FunctionTable = ... will result in true value return.

> I think a much better solution will be to write the
> 
> "$file.dump.md5" and compare Digest::MD5::md5($dump) with the contents
> of this file.

that would be slick, but that's another cpan dependency (for those using
5.6.1).  if it makes it easier to leave the date out of the .pm, you could
do that and maybe generate a FunctionTable.datestamp with the generation
date.  actually, something like FunctionTable.info that includes
datestamp, module magic number, and whatever else might be useful down the
road.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to