develooper Front page | perl.beginners | Postings from April 2002

Re: get file permissions?

Thread Previous | Thread Next
From:
Bryan R Harris
Date:
April 1, 2002 12:14
Subject:
Re: get file permissions?
Message ID:
OF43EFDA31.8B80652C-ON07256B8E.006E7DB8@rsc.raytheon.com

Thanks, Jonathan, Drieux!

- B

__________________


> Is it possible to do the reverse of a chmod?

Yes

> To get the permissions of a given file as a number?

Same question twice!

> I'm creating a new file from an old one, and I'd like the new one to have
> the same permissions as the old one.  Is this possible?

Same question trice!

You wanted to ask "If so, how?" :)  Which is answered by:

perldoc -f stat

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About