Dan Faerch - 2007-01-09

Logged In: YES
Originator: NO

Interesting bug ;)..

The purpose of the "eval {}" / "if ($@)" stuff, IS actually to leave hostname blank, if loading of Sys::Hostname failes. (ie. if its not installed).

So its sorta doing as it should, which leads me to a question: Was Sys::Hostname installed while you experienced this?

I run & develop this on Debian myself and i havent experienced this on any of my boxes.. But ill investigate none the less.

Im thinking, assuming you already had Sys::Hostname installed, that maybe "require Sys::Hostname" doesnt always work as i expect. I just couldnt get this trick working with "use" instead.