Answers for "perl make a new directory and change permissions"

0

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\n";
    }
}

main();
Posted by: Guest on October-12-2021

Code answers related to "perl make a new directory and change permissions"

Browse Popular Code Answers by Language