I don't think you need the use lib '..' bit. My gut feeling is that turning off buffering is not likely going to affect the printing of the error messages (well, maybe performance wise). But you will need to test it of course.
Okay, thanks, I'll test it with and with the use lib '..' bit.
Peter