On Mon, Apr 29, 2002 at 11:59:42AM +0100, Anders Holm wrote:
> Hi folks!
>
> Could someone point me in the right direction on this one.
>
> I'm trying to input /proc/cpuinfo
> on a Linux box into a hash. This file
> contains information of the processors on the running machine, what type
> they
Whooops:
On Mon, Apr 29, 2002 at 02:12:27PM +0200, I wrote:
> On Mon, Apr 29, 2002 at 11:59:42AM +0100, Anders Holm wrote:
> > Hi folks!
> >
> You're right on track (with some exceptions, but read about that further
> down the page).
>
> my ($key, $value) = split /:/;
make that 'split /\s*
to fix this either..
I'll bounce my head on it and shout if I can't get it to work!! ;)
Cheers!!
Anders Holm
-Original Message-
From: Michael Lamertz [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 13:29
To: Michael Lamertz
Cc: beginners perl; Anders Holm
Subject: Re: Gettin
On Mon, Apr 29, 2002 at 02:16:13PM +0100, Anders Holm wrote:
> Thank you Micheal!!
>
> Having loads of fun with this at the moment!! ;)
>
> There seems to be another caveat as well, SMP systems. ;) Fortunate enough
> to be able to test it on such a box at work.
>
> So, input would be something
ael Lamertz wrote:
>} Subject: Re: Getting contens of file into a hash
>On Mon, Apr 29, 2002 at 11:59:42AM +0100, Anders Holm wrote:
>> Hi folks!
>>
>> Could someone point me in the right direction on this one.
>>
>> I'm trying to input /proc/cpuinfo
>>
is
Ron
-Original Message-
From: Anders Holm [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 9:16 AM
To: Michael Lamertz
Cc: beginners perl
Subject: RE: Getting contens of file into a hash
Thank you Micheal!!
Having loads of fun with this at the moment!! ;)
There seems to be
processor
$cpu_type = $cpuinfo{'cpu_family'};
print "CPU type is i" . "$cpu_type" . "86\n\n";
Best Regards
Anders Holm
-Original Message-
From: Ron Powell [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 15:11
To: 'Anders Holm'; Michael