In a shell script, you can substitute any result into any aspect of the script by enclosing the routine in backquotes. For example:
in reply to Problems Returning Different Values to Shell Script using Perl Script
I'm not much of a csh user, but I believe it would be something
$ export IE=`myScript.pl $someShellValue $etc`
I really don't understand your last statement:
% setenv IE `myScript.pl $someShellValue $etc`
But since i'm outputing to screen a menu, that text will get into setenv.. Would you restate it with different words, please.