James Rouzier > Umask-Local > Umask::Local

Download:
Umask-Local-1.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0   Source  

NAME ^

Umask::Local - Class for localizing the umask

SYNOPSIS ^

  use Umask::Local;
  {
      my $umask_local = Umask::Local->new(0077);
      open(FILE,">only_me");
      close(FILE);
  }
  open(FILE,">default");
  close(FILE);

DESCRIPTION ^

    Umask::Local is use to set and reset the umask for the life of the object

Methods ^

new

Set the umask saving the previous umask Accepts only one parameter the umask

    Umask::Local->new(0077)

val

    return the the previous umask

umask_localize

    Convenience function

DESTROY

    Will reset the umask to the previous umask

SEE ALSO ^

    L<umask>

INSTALLATION ^

To install this module, run the following commands:

        perl Makefile.PL
        make
        make test
        make install

SUPPORT AND DOCUMENTATION ^

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/

AUTHOR ^

James Jude Rouzier, <rouzier@gmail.com>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: