Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL umask Function



Syntax

umask EXPR

umask


Definition and Usage

Sets the umask (default mask applied when creating files and directories) for the current process. Value of EXPR must be an octal number. If EXPR is omitted, simply returns the previous value.

Return Value

  • Previous umask value

Example

#!/usr/bin/perl -w

print("The current umask is: ", umask(), "\n");

It will produce following results, you can get different result on your computer based on your setting.

The current umask is: 18


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names