in reply to
How to set (environment) variables for the script
You could parse the shell script and set the environment variable accordingly. See
http://perldoc.perl.org/Env.html
Comment on
Re: How to set (environment) variables for the script
In Section
Seekers of Perl Wisdom