in reply to executing a perl scripts within another perl script

why on earth would you want to do that? A script is a program... just include the logic of test2.pl within test1.pl and you are done. Of course, if you need to have the logic be reusable, then put that logic in a package, and use Yourpackage within test1.pl. Either way, you need only one script.

Perhaps, if you gave us the contents (or, at least the logic of) what you are trying to do, we could provide more suggestions.

--

when small people start casting long shadows, it is time to go to bed