in reply to Perl $ENV hash

log into said machine (ssh, whatever), set up env (load profile, whatever), call printenv and send the results back to your machine