Perl file mtime
Thank you! Thread Tools. All times are GMT The time now is PM. Follow FutureQuest. Perl and file mtime. User Name. Remember Me? Lost PW. Mark Forums Read. Perl and file mtime I can't find anythings in the forums now, but I vaguely remember something about mtime not working correctly on FQ the way things are set up here? On some platforms inode numbers are of a type larger than perl knows how to handle as integer numerical values.
If necessary, an inode number will be returned as a decimal string in order to preserve the entire value. If used in a numeric context, this will be converted to a floating-point numerical value, with rounding, a fate that is best avoided. On systems that support futimes 2 , you may pass filehandles among the files.
On systems that don't support futimes 2 , passing filehandles raises an exception. Filehandles must be passed as globs or glob references to be recognized; barewords are considered filenames.
Please contact him via the GitHub issue tracker or email regarding any issues with the site itself, search, or rendering of documentation. Under Windows, the Perl utime module will not modify the time of an open file, nor a read-only file.
The comments in win This module will read and modify the time on open files, read-only files, and directories. Caveat user. This module is based on the SetFileTime function in kernel Perl's utime built-in also makes explicit use of this function if the "C" run-time version of utime fails.
The difference is in how the filehandle is created. Nothing is exported by default, but all documented subroutines are exportable. In addition, the following export tags are supported:. In other words: I wrote the code, but haven't tested it and don't have any plans to. Feedback will be accepted, and implemented when I get a sufficient supply of tuits.
This subroutine returns the access, modification, and creation times of the given file. No, there's no additional functionality here versus the stat built-in.
0コメント