in reply to running perl script from php
I think you're conflating your PHP and Perl syntax. In Perl $outArray, despite its name, is not an array, but just a scalar. You assigned to elements of the @outArray array, so to access that array you need to use the proper sigil.
print @outArray;
|
|---|