in reply to [untitled node, ID 142613]

Your syntax is O.K. The problem is probably at the receiving end. Post the contents of file.cgi and we'll have a look at it.

Do be forewarned that abuse might be heaped upon you if it's discovered that your script doesn't

  1. use CGI;
  2. use strict;