[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.209.115.5.164.1098241566.squirrel at 209.115.5.164>:
> 
> >      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;
or
$val =~ y/\.//d;

Regards,
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