in reply to Problem with file::stat

Perl has two stats: a built-in one, and the one in File::stat.
This module's default exports override the core stat() and lstat() functions, replacing them with versions that return "File::stat" objects. - File::stat
So just remove the line use File::stat, or access the mtime like this: (stat $filename)->mtime.

Replies are listed 'Best First'.
Re^2: Problem with file::stat
by mr19 (Initiate) on Jun 11, 2015 at 13:19 UTC

    Hello, thanks to all three of you for the fast response.

    Without the File::stat it works like a charm.

    Now i can continue testing.

    best regards

    Michael