Gerald Klaas wrote:
> I have downloaded the patch, but haven't installed it yet so I could do the
> pdfinfo test you suggested.
>
I have now replaced the pdf2html.pm with the one you placed on CVS
this morning (thanks!)
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/swishe/swish-e/prog-bin/?sortby=date#dirlist
Currently, in my testing, I see a bunch of lines like
----
>> +Fetched 3 Cnt: 379 http://inside.arb.ca.gov/ds/regact/8drrp0091.pdf 200 OK a
pplication/pdf 357404 parent:http://inside.arb.ca.gov/ds/regact/comlogdrrp00.htm
Use of uninitialized value at /app/swish/prog-bin/pdf2html.pm line 108.
----
Of course I can ignore the warning message, as it doesn't seem to be affecting
anything, but I am curious, since line 108 in pdf2html.pm is
the line " my $ret = <<EOF; " out of the following block.
---snip---
if ( ref $file_or_content ) {
unlink $file;
return \$txt if ref;
}
my $mtime = (stat $file )[9];
my $size = length $txt;
my $ret = <<EOF;
Content-Length: $size
Last-Mtime: $mtime
Path-Name: $file
---end snip---
It seems to odd to me that initializing a variable can cause
an "use of uninitialized variable" error. Do you think that
now that $file is unlinked earlier, is it causing an error in
the return ($ret) using $file in the Path-Name: header?
Gerald
Received on Wed Jan 30 23:56:01 2002