http://qs1969.pair.com?node_id=1189540

vladimirfedorov has asked for the wisdom of the Perl Monks concerning the following question:

I have the script on one of my systems that I can't modify at all, but need to fix its behavior. I can only pass arguments to the script. I am looking if it is possible to do some trickery with the arguments to amend script's behavior.
my $cmd = "mkdir "; my $arg = "temp"; #this arg I pass to the script qx($cmd "currentdate$arg");
I tried something like this:
my $cmd = "mkdir "; my $arg = "; mkdir otherdir"; qx($cmd "currentdate$arg");
But it gladly created a directory with the name "currentdate; mkdir otherdir". Any ideas?
Just a note - it is not a mkdir command in the target system, but I picked this generic command to make the code reproducible.
Thanks