http://www.perlmonks.org?node_id=581210


in reply to Invoking Perl script from a perl script

You could use do or require or eval combined with something that reads the file to execute. Safe is a slightly other way to eval some code. Another way, if you don't want to run the other script in the same interpreter as the current one, is to use system or something similar combined with $^X:

system($^X, 'other_perl_script.pl', 'foo', 'bar');

Cheers, Flo