in reply to Chmod a+x a file in Perl
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."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Chmod a+x a file in Perl
by Anonymous Monk on Feb 16, 2022 at 18:08 UTC | |
by Anonymous Monk on Feb 17, 2022 at 16:21 UTC |