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

Re: get file permissions?

Thread Previous
From:
Jonathan E. Paton
Date:
April 1, 2002 10:36
Subject:
Re: get file permissions?
Message ID:
20020401183600.93886.qmail@web14607.mail.yahoo.com
> 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

Thread Previous


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