i am trying to execute perl script using php shell_excel function. but instead of printing output it ask to open perl file when i execute php script.
i tried below
$result = shell_exec('app.pl');
app.pl contains below script
#!/usr/local/bin/perl
$count = 0;
while (<stdin>) {
    @w = split;
    $count++;
    for ($i=0; $i<=$#w; $i++) {
    $s[$i] += $w[$i];
    }
}
for ($i=0; $i<=$#w; $i++) {
    print $s[$i]/$count, "\t";
}
print "\n";
print "hi";
any suggestion ?
