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

Re: get file permissions?

Thread Previous | Thread Next
Bryan R Harris
April 1, 2002 12:14
Re: get file permissions?
Message ID:

Thanks, Jonathan, Drieux!

- B


> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

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