in reply to Error Module not working in Browser, Help!

The scope of the file handles might be the problem for the failing situation. Perhaps:
use strict; use warnings;
will reveal a number of issues. I tend to use "open my $fh" rather than hard-coded handles. I also tend to store the generated file handles in a dictionary hash rather than rely on being able to sort scoping problems out.

Everything but the troll