You could login to the account with that initialization
file then start your perl script and get with
as shown above. I don't know if there's a generic
shell-initialization-file parsing CPAN module.
Or if it's like .bashrc, maybe look on equals
signs like
, though that's not
a good solution in my opinion.