It would be nice if there were a Perl module that took a chmod(1) mode string and set the file mode from it. But I can't find one. The nearest I can find is File::Mode, which was last updated in 2000, though it does pass tests on modern Perls. It requires a full mode specification (i.e. rwxr--r--, not a+x), has a strange (to me) interface, and only does the string-to-octal conversion.
I know this is not very helpful, but I'm hoping if I post a response pleading ignorance someone will comment "No, you're wrong. <insert_module_name_here> does exactly what you want."
In reply to Re: Chmod a+x a file in Perl
by Anonymous Monk
in thread Chmod a+x a file in Perl
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |