Umask::Local - Class for localizing the umask
use Umask::Local; { my $umask_local = Umask::Local->new(0077); open(FILE,">only_me"); close(FILE); } open(FILE,">default"); close(FILE);
Umask::Local is use to set and reset the umask for the life of the object
Set the umask saving the previous umask Accepts only one parameter the umask
Umask::Local->new(0077)
return the the previous umask
Convenience function
Will reset the umask to the previous umask
L<umask>
To install this module, run the following commands:
perl Makefile.PL make make test make install
After installing, you can find documentation for this module with the perldoc command.
perldoc Umask::Local
You can also look for information at:
RT, CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=Umask-Local AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/Umask-Local CPAN Ratings http://cpanratings.perl.org/d/Umask-Local Search CPAN http://search.cpan.org/dist/Umask-Local/
James Jude Rouzier, <rouzier@gmail.com>
Copyright (C) 2014 by James Jude Rouzier
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install Umask::Local, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Umask::Local
CPAN shell
perl -MCPAN -e shell install Umask::Local
For more information on module installation, please visit the detailed CPAN module installation guide.