my $cmd = "mkdir "; my $arg = "temp"; #this arg I pass to the script qx($cmd "currentdate$arg"); #### my $cmd = "mkdir "; my $arg = "; mkdir otherdir"; qx($cmd "currentdate$arg");