in reply to
Changing file permissions in perl
umask
and
chmod
should do what you want.
Comment on
Re: Changing file permissions in perl
In Section
Seekers of Perl Wisdom