Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

checking file permission modes inside a perl script

32 views
Skip to first unread message

Kuhl

unread,
Jun 25, 2008, 9:07:42 AM6/25/08
to
I need to check permission modes of files or directories inside a Perl
script. I mean, I need to check the read/write/execute permissions.
Following steps of the program are dependent on the result of this
permission. How to do the check in the Perl script? Unfortunately, the
forum comp.lang.perl is read-only. So I have to post the question
here. Thanks.

Stephane CHAZELAS

unread,
Jun 25, 2008, 11:03:22 AM6/25/08
to
2008-06-25, 06:07(-07), Kuhl:

See perldoc -f stat
I don't think comp.lang.perl.misc is read-only.

--
Stéphane

Jens Thoms Toerring

unread,
Jun 25, 2008, 12:30:37 PM6/25/08
to
Stephane CHAZELAS <stephane...@yahoo.fr> wrote:
> 2008-06-25, 06:07(-07), Kuhl:
> > I need to check permission modes of files or directories inside a Perl
> > script. I mean, I need to check the read/write/execute permissions.
> > Following steps of the program are dependent on the result of this
> > permission. How to do the check in the Perl script? Unfortunately, the
> > forum comp.lang.perl is read-only. So I have to post the question
> > here. Thanks.

> See perldoc -f stat

Or see "perldoc -f -X" which may be even simpler to use.

> I don't think comp.lang.perl.misc is read-only.

It isn't, and neither is comp.lang.perl.moderated, posts
are just vetted by the moderators there.

Regards, Jens
--
\ Jens Thoms Toerring ___ j...@toerring.de
\__________________________ http://toerring.de

Jyoti Sharma

unread,
Jun 25, 2008, 9:30:32 PM6/25/08
to
On Wed, 25 Jun 2008 18:37:42 +0530, Kuhl <chen_...@yahoo.com> wrote:

> Unfortunately, the forum comp.lang.perl is read-only.
> So I have to post the question here. Thanks.

perl has a dedicated free newsgroup server: nntp.perl.org

Jyoti

0 new messages