in reply to Finding the Computer Name

Two ways:

  1. print $ENV{ COMPUTERNAME };
  2. print Win32::NodeName();

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: Finding the Computer Name
by merrymonk (Hermit) on Mar 13, 2008 at 08:30 UTC
    Many thanks - just what I was hoping for.