if(system("script2.pl \Q$var1\E \Q$var2\E")){ print "Error running script2.pl!\n"; }