Why not just let shell do the work?
use YAML; %ENV = %{ Load `sh -c ". rcfile; perl -MYAML -e'print Dump \\%ENV'"` } +;
Of course, the above will only work if the RC file that you sourced exported all of the variables that it set. Otherwise, you'd need to parse the output of `env' or something like that.
In reply to Re: substitute of dotsh.pm
by santang
in thread substitute of dotsh.pm
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |