in reply to Re: Finding a machine's name?
in thread Finding a machine's name?

This method also works in Windows by skipping the /bin/
my $host = `hostname`;