Horje
perl make a new directory and change permissions Code Example
[Solved] - perl make a new directory and change permissions Code Example
Try following codes
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();
Date: 2022-05-21 05:02:10
Category: perl
More for You