Think about Loose Coupling | |
PerlMonks |
Re^3: Is it possible to execute some command in qx argumentby bart (Canon) |
on May 10, 2017 at 10:42 UTC ( [id://1189986]=note: print w/replies, xml ) | Need Help?? |
$arg = "$(mkdir otherdir1)";Use single quotes in Perl, or the "$(" won't stick. And do something that produces output as well, to use in the name of the new directory. This also shows the need to cleanup (AKA "untaint") the user entered input data before just executing it. You could be executing a lot more than you bargained for.
In Section
Seekers of Perl Wisdom
|
|