I hope you realise that commenting out
use strict is not the best way to solve problems.
Generally what causes the Netscape versus IE problem is that you're not returning the correct MIME-Type header. In your code here, it would seem that you're careful to output it, but it's not entirely clear. There is a chance that the MIME type is being set to "text/plain" instead of "text/html".
If you create a
CGI object, you should use it. If you're importing
:all of the methods, you should use them. Mixing and matching is not really a good idea, as you've done here. I'd recommend the object way, since it doesn't require importing functions that can collide with your own. For example:
print $query->header("text/html");