note
Utilitarian
You could set the environment variables and run [doc://exec] to call the script
<c>
[skrynesaver@busybox ~]$ cat ~/tmp/test.pl
#!/usr/bin/perl
$ENV{'THE_VAR'}= "This has been set in the environment of the script";
exec "$ENV{HOME}/tmp/test.sh"
[skrynesaver@busybox ~]$ cat ~/tmp/test.sh
#!/bin/bash
echo $THE_VAR
[skrynesaver@busybox ~]$ perl tmp/test.pl
This has been set in the environment of the script
</c>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-681898">
<c>print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."</c>
</div></div>
930628
930628