in reply to pass a variable or string to shell command from perl script
"...the shell command..."
TMTOWTDI without shell out:
karls-mac-mini:playground karl$ mkdir 1206287 karls-mac-mini:playground karl$ cd 1206287/ perl -MPath::Tiny -E 'path(q(folderA/folderB/folderC))->mkpath;' karls-mac-mini:1206287 karl$ find . -type d . ./folderA ./folderA/folderB ./folderA/folderB/folderC
If this is what you want.
See also Path::Tiny.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
|
|---|