in reply to how to check permissions

You can use stat() to get the mode of the file and check it with your code:

$filemode=(stat($filename))[2]; #check permissions here with slick XOR

Cheers

Replies are listed 'Best First'.
Re: Re: how to check permissions
by Anonymous Monk on May 01, 2003 at 17:35 UTC
    i am very new with perl and get a lot of syntax trouble if possible could u sum it up for me ... if it's not too much trouble for you Thanks .. I am reading the perldoc and they have an example in it .. but it's kind of confusing ..and i need the permissions for the directories not files .. thanks again