discuss: /LDP/LGNET/114/misc/tag/mike.show-mtime.pl.txt
Subject:
/LDP/LGNET/114/misc/tag/mike.show-mtime.pl.txt
From:
Tony Dodd ####@####.####
Date:
27 Aug 2005 11:46:08 -0000
Message-Id: <4310527B.8060801@wefixtech.co.uk>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
There's an issue with the above file - that just caused my syslog to
jump from about 5mb to 150mb.
"Use of uninitialized value in numeric ne (!=) at
mike.show-mtime.pl.txt line 7"
If someone could patch it, i'd be greatful
Diff:
- --- mike.show-mtime.pl.txt.orig 2005-08-27 07:43:18.000000000 -0400
+++ mike.show-mtime.pl.txt 2005-08-27 07:43:25.000000000 -0400
@@ -3,7 +3,7 @@
my( $a, $b ) = 0;
{
$b = ( stat "foo" )[ 9 ];
- -if ( $a != $b ){
+if ( $a ne $b ){
print scalar localtime, ": $b";
$a = $b
}
Regards,
Tony
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDEFJ6ashGDqD5ULoRAld8AJ0XS8lmEUpnp45k/+u64fDwz4Hb7wCgkk17
GqVEXrQ9mP2h4Pk9MtKutZU=
=ssUj
-----END PGP SIGNATURE-----