in reply to How can I test a file to find out when it was created

Use perl built in function stat.

Hotshot
  • Comment on Re: How can I test a file to find out when it was created

Replies are listed 'Best First'.
Re: Re: How can I test a file to find out when it was created
by BazB (Priest) on Oct 02, 2002 at 07:42 UTC

    stat will tell you the last modified time - mtime - without a problem, however it's not possible to tell (on most/all platforms) when a file was created - only the last time it's inode was modified - ctime.

    You might also find the standard File::stat module of use - it allows name based access to the various bits of info that stat returns.

    Cheers

    BazB