source bash config from perl code

source bash config from perl code

Alexander Indenbaum alexander.indenbaum at gmail.com
Wed Sep 30 16:48:41 IST 2009


Hello,

I have bash script which alters environment, kind of configuration,
let's say config.env.

I'd like to import this environment in context of perl script.  How do
I do equivalent to 'source config.env' from perl code? I mean I could
just run bash in subprocess, but it would not alter perl process
environment.

Any thoughts?
-- 
Alexander Indenbaum



More information about the Linux-il mailing list