in reply to Finding a machine's name?
In addition to above, I'd suggest Sys::Hostname
Cheerio, Sören