"Wheldon,M" <[EMAIL PROTECTED]> wrote:

> Being relativly new to Perl could someone please explain why the
> following doesn't work on a win2k pro box the problem is that the
> registry
> key is not being opened

<snip>

P.S. Since this is Perl, "There's More Than One Way To Do It."

If it's specifically system name you're going after, you can go another
way:

use Sys::Hostname;

my $cnam = hostname;

Caveat: under some releases of Windows (both NT and !NT) it is possible for
the system name, from the point of view of Microsoft networking, to be
different than the system name from the point of view of TCP/IP. If this is
so, I don't know which is returned by hostname. You'll just have to try it
and see.

Tom Wyant

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to