in reply to Open a .pl file form a .pl file

you could do these:

using a pipe:
open (XX, "perl -w test_two.pl |"); my @test = <XX>; close (XX);
using backquotes:
my @test = `perl -w test_two.pl`;