Hi, I'm trying to call sensors (from the lmsensors package) from within Perl and have the stdout piped into an array.
I'm afrain I'm _very_new to perl so I'm not 100% sure I'm doing it
right, wondering if you guys can help.
So far I've done;
use Shell qw(sensors);
$sensors = sensors('-A');
print $sensors
Yet nothing gets printed..
I've tried using the O.O. example from perl's website and that works
(albeit without any linefeeds). The problem is that I want to run a
regex on the array and chomp it (if that;s the right terminology), so
that I can have a seperate variable for each temperature and fan speed.
Any help for this newbie appreciated!
--
Joel Merrick
signature.asc
Description: This is a digitally signed message part
