[mrtg] Re: Conversion code for hex to integer

Takumi Yamane yamtak at b-session.com
Wed Oct 20 05:31:42 MEST 2004

On Tue, 19 Oct 2004 23:06:06 -0400 (EDT), "Bill Wichers" wrote 
in <3506. at>:
> >      40.05.D6.DC.20.DE.0D
> [snip]
> You need to write something that takes out the "." characters from 
> between the hex digits.

$val =~ s/\.//og;
$val =~ y/\.//d;

Takumi Yamane <yamtak at b-session.com>

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list