in reply to not able to get last modified time of a file

stat is a built-in-function ... you don't need to use File::stat.

Even "worse": if you look at the docu for File::stat, you'll see

This module's default exports override the core stat() and lstat() functions
so the built-in function won't work any longer. Simply remove your "use"-line from your script to solve your issue.

HTH, Rata
  • Comment on Re: not able to get last modified time of a file

Replies are listed 'Best First'.
Re^2: not able to get last modified time of a file
by ikegami (Patriarch) on Jan 28, 2011 at 07:52 UTC

    So,

    (stat($qfn))[9]

    or

    use File::stat; stat($qfn)->mtime

    or

    use File::stat; (CORE::stat($qfn))[9] # Bypass override by File::stat