It would be nice if you gave us an example that actually reproduced the warning you have shown us.
There are no 71 lines in your example code, and when I it with a non-existing file I get Use of uninitialized value $timestamp in localtime at foo.pl line 12., and no warning with an existing file.