in reply to How to execute external script from CGI

my $out = `perl /var/www/html/portfolio/loadCSV.pl --L --Q` print "$out";

The second problem here is that the top line is not terminated in a semi-colon. The first problem (as others have addressed) is that you are attempting to shell out from perl to perl.


"It doesn't work" is as useful to a developer as "I'm ill" is to a medic. Try to be specific. SSCCE is best.

Replies are listed 'Best First'.
Re^2: How to execute external script from CGI
by vskatusa (Acolyte) on May 22, 2020 at 13:51 UTC
    Thanks for pointing out I was missing a semicolon.