This is a discussion on Re: [mrtg] Perl RegEx question within the MRTG forums, part of the Networking and Network Related category; The locale is US English -----Original Message----- From: "Niall O'Reilly" <Niall.oReilly@ucd.ie> To: &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
The locale is US English
-----Original Message----- From: "Niall O'Reilly" <Niall.oReilly@ucd.ie> To: "Scott S. Heath" <SHeath@udi.com> Cc: "Niall O'Reilly" <Niall.oReilly@ucd.ie>; mrtg@lists.oetiker.ch Sent: 4/16/2008 4:57 PM Subject: Re: [mrtg] Perl RegEx question On 16 Apr 2008, at 22:34, Scott S. Heath wrote: > From this it looks like it's reading the file fine, and the regex is > correct. What would be causing that last 0 getting dropped off? I'm guessing, and may be wide of the mark. Check your locale. I don't know enough about locale to give any more detailed information. Check the length of your line, and whether there are any non-printing characters (eg NUL: 0x0) between '5' and '0', or any unexpected characters anywhere. Check whether the '0' is really a zero, or another character which somehow 'looks like' a zero. Inserting an additional line of code as follows may help with some of the above. my $ReplayqueueFile = <$REPLAYQUEUEFILE>; warn join(':', map { ord $_ } ( split('', $ReplayqueueFile))), "\n"; if ($ReplayqueueFile =~ m/(\d+)/) { /Niall _______________________________________________ mrtg mailing list mrtg@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg |
![]() |
| Thread Tools | |
| Display Modes | |
|
|