darkblackblue has asked for the wisdom of the Perl Monks concerning the following question:
hi , I want to create directory with input but ıt create random name?
Created folder name is SERSDARKBLACKDESKTOPA$DIRECTORY_NAME#!/use/perl/bin use strict; print "Enter directory name :"; my $directory_name = <STDIN>; my $dir = "C:\Users\darkblack\Desktop\A\.$directory_name"; # It is proble , I cant write true format in up line mkdir( $dir ,0755) or die "Couldn't create $dir directory, $!"; print "Directory created successfully\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: create directory with input
by LanX (Saint) on Dec 03, 2017 at 11:33 UTC | |
by darkblackblue (Novice) on Dec 03, 2017 at 12:55 UTC | |
by poj (Abbot) on Dec 03, 2017 at 13:14 UTC | |
by darkblackblue (Novice) on Dec 03, 2017 at 14:36 UTC | |
by LanX (Saint) on Dec 03, 2017 at 13:10 UTC | |
Re: create directory with input
by AnomalousMonk (Archbishop) on Dec 03, 2017 at 17:35 UTC | |
Re: create directory with input
by CountZero (Bishop) on Dec 04, 2017 at 11:04 UTC | |
Re: create directory with input
by kcott (Archbishop) on Dec 04, 2017 at 07:38 UTC |
Back to
Seekers of Perl Wisdom