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

Re: get file permissions?

Thread Previous
Jonathan E. Paton
April 1, 2002 10:36
Re: get file permissions?
Message ID:
> Is it possible to do the reverse of a chmod?


> 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

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About