in reply to Problem while displaying dynamic data on perl CGI pages

If you do an open, always check if it worked.

That catches many "mysterious" errors.