I want to return the output of a perl script to a webpage. However it only returns the last line.
Perl script:
my $directory = $ARGV[0];
opendir(DI
From php docs,
Return Values
The last line from the result of the command. If you need to execute a command and have all the data from the command passed directly back without any interference, use the passthru() function.
To get the output of the executed command, be sure to set and use the output parameter