in reply to invoking umask command in perl

Same reason as last week: Backticks to capture umask output

Replies are listed 'Best First'.
Re^2: invoking umask command in perl
by austin43 (Acolyte) on Jun 01, 2011 at 18:11 UTC
    Last week I was trying to capture output instead of invoking a specific command. I can't use the same method as last week to actually change the umask. Could you shed some light as to how to do this?

      The problem you encountered today has the same source as the problem you encountered last time. You didn't learn the kind of problem, you just blindly took a solution. Also see umask for the Perl-builtin.

      Also note that you cannot affect the environment after your program has finished running.

        No...I simply don't understand how to invoke the shell to use this function. I understand the issue comes from the same source, but all my attempts at implementing similar measures to fix my problem failed. I also have looked at different sources of information to gain knowledge about the umask command. Before you accuse someone of 'blindly' taking a solution, make sure the person isn't just new to linux and perl. I am still learning the ropes of both linux and perl, and it becomes hard to learn when everyone expects you to understand exactly what is happening when you are already trying to understand simpler aspects of the problem.