in reply to identify host
If you're looking for the hostname try out Sys::Hostname.
If you know it's a unix box, chomp( my $hostname = qx/hostname/ ); might do the trick.
Sören