Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PERL

perl make a new directory

use strict;
use warnings;

sub main {
    my $directory = "temp";
    
    unless(-e $directory or mkdir $directory) {
        die "Unable to create $directory
";
    }
}

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