in reply to subroutine ref while "strict refs"
I think you wanted:
my $perl = do "a.pl"; [download]
You're missing the do.