Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PERL

perl make a new directory and change permissions

use strict;
use warnings;

sub main {
    my $directory = "fruit";

    unless(mkdir($directory, 0755)) {
        die "Unable to create $directory
";
    }
}

main();
Source by caveofprogramming.com #
 
PREVIOUS NEXT
Tagged: #perl #directory #change #permissions
ADD COMMENT
Topic
Name
4+4 =