in reply to Re^5: replace use HTTP::Lite to run a perl file that was on another server
in thread replace use HTTP::Lite to run a perl file that was on another server

G'day RonW,

Recommending the 3-argument form of open is sound advice; however, using a globally-scoped, package variable (i.e. CGI) is not. This would have been better:

open my $pipe_from_cgi, '-|', $cgi or die ...

— Ken

Replies are listed 'Best First'.
Re^7: replace use HTTP::Lite to run a perl file that was on another server
by RonW (Parson) on Feb 21, 2017 at 19:03 UTC

    I overlooked that. I was only focused on the 2 vs 3 arg forms of open. Yes, a globally scoped file handle is also not a good idea.