Search
 
SCRIPT & CODE EXAMPLE
 

PERL

perl make a new directory

use strict;
use warnings;

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

main();
Comment

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();
Comment

PREVIOUS NEXT
Code Example
Perl :: perl split array into smaller arrays 
Perl :: mean data frame columns by group R 
Perl :: perl leading zeros formatting sprintf 
Perl :: perl exit loop example 
Pascal :: store input in variable in pascal 
Pascal :: subrange variables pascal 
Pascal :: while do in pascal 
Pascal :: pascal special characters 
Powershell :: powershell -executionpolicy bypass -file 
Powershell :: powershell scriptblock return variable 
Gdscript :: gdscript vector2 
Clojure :: clojure write file 
Lisp :: common lisp map number to word 
Assembly :: flops in deep learning 
Assembly :: multiply two numbers assembly lmc 
Assembly :: assembly mov char 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: map range of numbers to another range 
Javascript :: jest cache clear 
Javascript :: javascript replace spaces with dashes 
Javascript :: import redux thunk 
Javascript :: jquery refresh page 
Javascript :: delete session javascript 
Javascript :: get week day name in javascript 
Javascript :: how to remove checked attribute of checkbox in jquery 
Javascript :: loop array backwards javascript 
Javascript :: generate random whole numbers within a range javascript 
Javascript :: jquery remove and add class 
Javascript :: how to use another port in angular 
Javascript :: How to get current URL with Javascript or React 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =