Umask-Local reviews

cpanratings
 

RSS | Module Info | Add a review of Umask-Local

Umask-Local (1.0)

Please consider a simpler non-OO interface instead, a la File::chdir:

use File::Umask; # or whatever, the "Local" thing is redundant
{

local $UMASK = 0077;

open(...);

copy(...);
}
# previous umask is restored

which is arguably better (to me at least) than the current:

use Umask::Local;
{

my $umask_local = Umask::Local->new(0077);

open(...);

copy(...);
}
# previous umask is restored