in reply to how to set environment vars

You could start showing us what you tried exactly, i.e. the contents of the csh file and of the relevant piece of your Perl/CGI script that tries to "source" it.

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.