Subject: | undefined value as an ARRAY reference |
Date: | Mon, 22 Oct 2007 13:08:14 +0200 |
To: | bug-Sys-Info [...] rt.cpan.org |
From: | Helmut Lichtenberg <heli [...] tzv.fal.de> |
While this works:
# perl -MSys::Info::CPU -e 'printf "%s\n", Sys::Info::CPU->new->load'
0.49
count produces this error:
# perl -MSys::Info::CPU -e 'printf "%s\n", Sys::Info::CPU->new->count'
Can't use an undefined value as an ARRAY reference at
/usr/share/perl5/Sys/Info/CPU.pm line 30.
Environment:
Debian/GNU Linux Sarge, kernel 2.6.16-2-686-smp
Perl, v5.8.4 built for i386-linux-thread-multi
# perl -MSys::Info -e 'printf "%s\n", $Sys::Info::VERSION'
0.2
# perl -MSys::Info::CPU -e 'printf "%s\n", $Sys::Info::CPU::VERSION'
0.5
Regards,
Helmut
--
-------------------------------------------------------------------------
Helmut Lichtenberg <Helmut.Lichtenberg@fal.de> Tel. +49 (0)5034/871-128
Institut für Tierzucht 31535 Neustadt Germany
-------------------------------------------------------------------------