The idea is to not invoke the shell.
In reply to Re^5: invoking umask command in perl by Corion in thread invoking umask command in perl by austin43