Thread Infos über Maschine (5 answers)
Opened by hudo at 2004-04-06 03:36

[E|B]
 2004-04-07 20:51
#81457 #81457
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
HiHo!

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use Win32::SystemInfo;
use strict;
use warnings;

my (%phash, %mhash, $proc, $cpuinfo);

$proc = Win32::SystemInfo::ProcessorInfo();
Win32::SystemInfo::ProcessorInfo(%phash);
Win32::SystemInfo::MemoryStatus(%mHash, "MB");
$cpuinfo = "Installed Processors: $phash{NumProcessors}\n";
foreach my $i (0..($phash{NumProcessors} - 1)){
$cpuinfo .= "\nProcessor ".($i + 1).":\n";
$cpuinfo .= "Processor level: $proc\n";
$cpuinfo .= "Processor Speed: $phash{"Processor$i"}{'MHZ'} MHz\n";
$cpuinfo .= "Identifier: $phash{"Processor$i"}{'Identifier'}\n";
$cpuinfo .= "Vendor Identifier: $phash{"Processor$i"}{'VendorIdentifier'}\n";
$cpuinfo .= "Processor Name: $phash{"Processor$i"}{'ProcessorName'}\n";
}

print $cpuinfo;
\n\n

<!--EDIT|[E|B]|1081356722-->
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread Infos über Maschine