title: gethostbyaddr in perl is returning empty?
body: <p>Hi I am using perl <code>$ENV{'REMOTE_ADDR'}</code> to get ip address . It will return the ipaddress 
  But when i am using </p>
  
  <pre><code>local($ip_address) = $ENV{'REMOTE_ADDR'};
  $ip_address =~ s/^\s+|\s+$//g;
  local(@bytes) = split(/\./,$ip_address);
  local($packaddr) = pack("C4",@bytes);
  local($host_name) = (gethostbyaddr($packaddr,2))[0];
  print $host_name;
  </code></pre>
  
  <p>it is not giving any host name , instead it is returning nothing .
  Any help??</p>