[mrtg] [Re]:ConversionCode keyword examples
Yang Xiao
yxiao2004 at gmail.com
Tue Jul 5 20:45:57 MEST 2005
Hi,
sub String2Temp {
my $str = shift;
$str =~ /\((\d+)F\)(.*)ambient.*/i;
my $temp = $1;
return $temp;
}
This greps the digits in "(\d+)F ambient" for temperature in Farenheit
in a string.
- Yang
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list