CarolinaPerler has asked for the wisdom of the Perl Monks concerning the following question:

On Linux variants, AIX, and others, getting the environment for an arbitrary process ID is straight forward. Typically, some variant of the ps command will work.

However, doing so on HPUX is problematic. I tried the HPUX::Pstat package to no avail. It has a 'pstat_getproc' method that I hoped would return the typical environment vars for a process. It did not.

The question - anyone know of a package that gets environment variables for a given process (or, env vars for all processes)?

Or, lacking that, any idea how to get HPUX to give up this info?