in reply to perl + CGI's
You need to print a header first.
my $q = CGI->new();
[insert your code here]
The header tells the browser what type of content to expect, and without it, it gets confused.
--hiseldlWhat time is it? It's Camel Time!