in reply to Retrieving an NT machine name?

Use this:

use Win32::AdminMisc; my $machinename = Win32::AdminMisc::GetComputerName();

Replies are listed 'Best First'.
Re: Re: Retrieving an NT machine name?
by John M. Dlugosz (Monsignor) on Aug 30, 2001 at 02:15 UTC
    Where do I find that module? Nothing with "admin" or "misc" in the name can be found at http://www.activestate.com/PPMPackages/zips/6xx-builds-only/.

      The module, as well as very nice other Win32 modules, can be found at http://www.roth.net/perl/

      You just need to know how to use a search engine to find this link, by the way.

      On the Web, Google is your friend!
      It's true that win32::adminmisc doesn't show up in AS's PPM repository, but for some reason it's installed as a core module. I have it on my win9x and NT boxes, without ever installing it from PPM. Odd, eh?