in reply to Finding a machine's name?

There's also $ENV{'COMPUTERNAME'} in Windows.