I'm after a quick way to check the permissions of a file, and then make sure that all other files created by my program have the same permissions.
I know that I "do stuff" with the output of stat, but it seems like a lot of work for what I want to do. For the record, perldoc -q permissions, perldoc -q mode and perldoc -q file have not been of any help here.