in reply to the 500 error

Completely ignoring the problems (such as the shebang line and the $cf,$ct issue) since those have been answered by other posts...

Why use CGI, then make life hard on yourself?

#!/usr/bin/perl use CGI; my $q = new CGI; my $cf = $q->param('cf'); # Needs to be untainted print $q->header, $q->start_html, $q->h2("$cf,$ct");

No reason to code the HTML up yourself if you're already incorporating CGI...

Replies are listed 'Best First'.
HTML for a good reason
by fraktalisman (Hermit) on Oct 23, 2004 at 17:10 UTC
    Why use CGI, then make life hard on yourself?
    One possible reason: as a web desinger, I'm already more familiar with HTML than with perl. Why should I learn or look up CGI functions for some simple tags that I know by heart?