How can I set file permissions from Perl?

前端 未结 2 1329
挽巷
挽巷 2021-01-17 09:57

I\'m writing a Perl script that generates a Bash script. I\'m using open() with a mode of > to output everything to a new file. Standard stuff:<

2条回答
  •  [愿得一人]
    2021-01-17 10:12

    Putting + infront of < or > allows you to open the file in both read and write mode.

    In you case you can chmod the newly created file.

提交回复
热议问题