in reply to CGI script calling a perl script

That should work, so you're leaving out some details