The mkdir function creates a new, empty directory with the specified permissions (mode). : mkdir « File « Perl






The mkdir function creates a new, empty directory with the specified permissions (mode).

    

#Format:

#mkdir(FILENAME, MODE); (UNIX)
#mkdir(FILENAME);       (Windows)


mkdir("mydir", 0755); # UNIX
mkdir(mydir);         # Windows

   
    
    
    
  








Related examples in the same category

1.To create a directory, use the mkdir command:
2.Creating Directory
3.Make a folder (directory)
4.Creating Directory with mkdir
5.Access permissions for the mkdir function.