ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
3.2.159 statstat This function returns a 13-element list giving the statistics for a
file, either the file opened via ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat $filename; Not all fields are supported on all filesystem types. Here are the meanings of the fields:
If stat is passed the special filehandle
consisting of an underline, no actual stat(2) is done, but the current contents of
the stat structure from the last stat or stat-based file test (the The following example first stats if (-x $file and ($d) = stat(_) and $d < 0) { print "$file is executable NFS file\n"; } Hint: if you need only the size of the file, check out the |