![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: running sh script from perl scriptby coreolyn (Parson) |
on Jul 17, 2002 at 20:22 UTC ( #182569=note: print w/replies, xml ) | Need Help?? |
When referencing any code in your questions you should utilize <CODE> tags. Now that thats out of the way, just dump using the sh script and update your variables via the %ENV hash as in $ENV{'JAVA_HOME'} etc.. However if sourcing existing sh files is mandantory, read the source file via your Perl script and regex for the name=value pairs and update the %ENV based on your results. coreolyn
In Section
Seekers of Perl Wisdom
|
|