|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^3: Source command in perl scriptby Utilitarian (Priest) |
| on Oct 20, 2011 at 09:32 UTC ( #932595=note: print w/ replies, xml ) | Need Help?? |
|
A parent process cannot inherit from a process it spawns. You can however set the environment within the Perl script and then the system call will inherit it or you could run the db2profile scipt prior to running the Perl script and then everything would inherit it. Rewriting as Perl Or calling everything from a shell script...
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||