Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl script works differently from Apache then CMD line

by soonix (Canon)
on Jan 05, 2018 at 11:11 UTC ( [id://1206746]=note: print w/replies, xml ) Need Help??


in reply to Perl script works differently from Apache then CMD line

I suggest trying the script from Re: cgi/perl/fortran web program, calling it with both methods and comparing the outputs. (perhaps extended like below)
use strict; use warnings; my $n; print "Content-Type: text/plain\n\nPerl Version $] ($^V)\n"; print "ARGV" . $n++ . ": >>$_<<\n" foreach @ARGV; print "\n$_:\n", qx($_ 2>&1) foreach qw(id pwd env);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1206746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found