thadc has asked for the wisdom of the Perl Monks concerning the following question:
I have a need to create a directory on file system from within my perl script, and I have to assume the directory path is not fixed. I can successfully execute something like:
`mkdir folderA/folderB/folderC`
, but the directory path is variable, so I have to somehow pass the path variable as part of the shell command. However, I do not know how to do this. Any ideas are appreciated. Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pass a variable or string to shell command from perl script (updated)
by haukex (Archbishop) on Dec 27, 2017 at 19:05 UTC | |
by thadc (Novice) on Dec 28, 2017 at 16:54 UTC | |
|
Re: pass a variable or string to shell command from perl script
by marto (Cardinal) on Dec 27, 2017 at 18:39 UTC | |
|
Re: pass a variable or string to shell command from perl script
by Laurent_R (Canon) on Dec 27, 2017 at 21:33 UTC | |
by afoken (Chancellor) on Dec 28, 2017 at 10:42 UTC | |
|
Re: pass a variable or string to shell command from perl script
by karlgoethebier (Abbot) on Dec 28, 2017 at 18:24 UTC |