You can use stat as others recommended, but stat can be expensive.  Stat
is good for getting all permissions, but if you just want to see if you
can write, execute or read a file, try using the file test operators. 
For example, to see if a file is writable:

if (-w $filename) { ... }

Sara.

Hans Baartmans wrote:
> 
> Is there a module or command that returns the permissions of a file or
> directory?
> 
> Thanks,
> Hans

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to