
sleuth
Enthusiast
Dec 15, 2000, 8:39 PM
Post #2 of 3
(47593 views)
|
Re: Checking File Ownership & Permissions
[In reply to]
|
Can't Post
|
|
If anyone wants to know, you can use stat(); $filename = "file.db"; ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat($filename) or die "no $filename: $!"; print "Permission: $mode"; Also, going by the above variable names in the same order, they can be stored in an array for convenience. @stats = stat($filename); print "Permission: $stats[2]"; Sleuth
|