title: Is there a way to read environment variables of other processes using Perl and in a Linux or Solaris environment?
body: <p>In Perl, I need to read the environment of other processes.</p>
  
  <ul>
  <li>The script is running with root
  privileges. </li>
  <li>The script will be
  running in both Linux and Solaris. </li>
  <li>I would like a solution that's mostly platform agnostic, at least between Linux and Solaris.  In Linux, examining the /env/&lt;proc_id>/environ can get me the answer.</li>
  <li>I would like to avoid having to fork.  I already have a solution forking "/usr/ucb/ps -auxwwwe $pid"</li>
  </ul>
  
  <p>Any ideas?</p>