Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Perl :: perl mechanize infinite scroll 
Perl :: len perl 
Perl :: How to run a pearl script 
Pascal :: take console input in pascal 
Pascal :: pascal wait for key 
Pascal :: pascal pause program for seconds 
Pascal :: pascal 
Powershell :: powershell display firewall rules name 
Powershell :: how to download git on windows using power shell 
Gdscript :: gdscript for loop 
Clojure :: hello world in clojure 
Abap :: abap if statement 
Erlang :: get port erlang 
Assembly :: vba hello world 
Assembly :: keyevent to char 
Assembly :: nano error reading lock file not enough data read 
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 =