Hi Jörg,

> Can you try modifying the "open" call to use the three-argument form,

> i.e "open($fh,'<',$filename)"? Another check would be to see if
$filename is 
> still a reference (print the value of "ref($filename)", it should 
> be "SCALAR".

That helped a little - now it's the stat that fails:

10.0.16.50:4577 L6 serve_file response Serving file: SCALAR(0x8ff6cb8)
stat() on unopened filehandle $fh at ./plugins/serve_file line 63.

Commenting out the stat() gets rid of the error, of course - but it
still doesn't work as so much of the following code depends on the
result of the stat(). CAN you stat() a scalar anyway?

Would it be better if I implemented my own code?

Regards,
Lars
-- 

Lars Skjærlund
Consultant
 
Ubiquitech A/S
Lyngby Hovedgade 4,3
2800 Kgs. Lyngby
Denmark
 
Tel: +4570200084
Mobile: +4523457157
 
http://www.ubiquitech.com


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

Reply via email to