in reply to Re: make_path for creating directory tree
in thread make_path for creating directory tree
Thank you for your answer, good to hear that Perl can handle it :)
Ok so I just tried to use make_path and I did something wrong.
#/bin/perl/ use strict; use warnings; use File::Path qw(make_path); make_path("~/folder1/folder2/folder3/folder4");
This creates the following directories: ~ (!!!), then folder1, then folder2, then folder3 and then folder4. If I use single quotes it just exits quietly without an error but without creating anything either. Any thoughts???
EDIT: Sorry, we posted simultaneously! I'll study your example and retry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: make_path for creating directory tree
by james28909 (Deacon) on Dec 23, 2015 at 15:37 UTC | |
by fasoli (Beadle) on Dec 23, 2015 at 16:04 UTC | |
by james28909 (Deacon) on Dec 23, 2015 at 16:16 UTC | |
by fasoli (Beadle) on Dec 23, 2015 at 16:20 UTC | |
by james28909 (Deacon) on Dec 23, 2015 at 16:24 UTC |