Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / bin / Uniqueid.pm
blob3e453a4695d28150e3c8076108448f868a647b32
1 #!/usr/bin/env perl
2 sub uniqueid
4 if ($^O eq "MSWin32")
6 my $uid = 1;
8 open (IPNUM, "ipconfig|") || die "Can't run ipconfig: $!\n";
10 while (<IPNUM>)
12 if (/Address/)
14 $uid = (split (/: (\d+)\.(\d+)\.(\d+)\.(\d+)/))[4];
18 close IPNUM;
20 return $uid;
22 else
24 return getpwnam (getlogin ());