in reply to Sourcing cshrc environment in Perl

I don't know csh, but in sh and bash I can use the set command to display all environment variables (when running set in csh, it only displayed a few variables not all, don't know what's up with that but that's because, like I said, I don't know csh). A sh solution to this would be `source /path/to/file && set` then have your program parse the output. For a csh solution, all you should have to do is replace set with whatever the appropriate csh command is.