perl - CGI.pm command line testing is NOT working on my system -
i tested suggestions on post (how can send post , data perl cgi script via command line?). but, none of solutions posted in thread work me. wrong?
greg bacon's example in above mentioned thread (accepted answer) not working on system.
tmp> cat /etc/os-release | grep -i pretty_name pretty_name="opensuse 13.1 (bottle) (x86_64)" tmp> perl -version | grep -i version perl 5, version 18, subversion 1 (v5.18.1) built x86_64-linux-thread-multi tmp> cat prog.cgi #! /usr/bin/perl use warnings; use strict; use cgi qw/ :standard -debug /; print "content-type: text/plain\n\n", map { $_ . " => " . param($_) . "\n" } param; tmp> ./prog.cgi foo=bar baz=quux content-type: text/plain tmp> ./prog.cgi content-type: text/plain tmp>
none of solutions in thread 2224158 worked me (exporting variable values, supplying input file, command line, etc.) makes me think in cgi.pm module (cgi-4.36) or perl installation or linux system not working correctly.
i see when run "cpan cgi":
test summary report ------------------- t/command_line.t (wstat: 1024 tests: 7 failed: 4) failed tests: 1-3, 6 non-zero exit status: 4 files=62, tests=1552, 5 wallclock secs ( 0.33 usr 0.06 sys + 3.85 cusr 0.37 csys = 4.61 cpu) result: fail failed 1/62 test programs. 4/1552 subtests failed.
Comments
Post a Comment