in reply to How to pass arguments in perl in linux system through system command

The way you coded it results in perl looking for a program with the name path of script in linux/perl script2.pl. I'm pretty sure you don't have such a program in the path. What you like is probably:

system('perl', 'path of script in linux/script2.pl', $configfile);

McA