This is a discussion on Re: [mrtg] Perl RegEx question within the MRTG forums, part of the Networking and Network Related category; This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1089587177== Content-Type: multipart/signed; protocol="application/pgp-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============1089587177== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-58-295106357" Content-Transfer-Encoding: 7bit This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-58-295106357 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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 --Apple-Mail-58-295106357 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFIBnZUeYfkja6ZXtkRAkYKAJ99pq4mrIUQzux63ddODs jnfs1PVgCdH/NJ t+Mkq56+oQS1z+DNV8m1HeM= =+wj6 -----END PGP SIGNATURE----- --Apple-Mail-58-295106357-- --===============1089587177== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ mrtg mailing list mrtg@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg --===============1089587177==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|