G'day jjeff007,
Welcome to the Monastery.
The prompt you show in your tests (i.e. [root@XXXX perl5]#)
suggests that you're running these tests as root.
It's unlikely that your CGI scripts are being run by root.
Determine which user is running your CGI scripts
and then rerun your tests as this user: this may highlight the problem.
Your "head cips.cgi" output has presumably been modified (there's no use CGI or other CGI code);
however, you don't show what you've changed: a simple truncation or a more substantial modification (possibly including a reordering of the lines shown).
The following is guesswork, as I'm pretty much working in the dark here, but consider:
-
Data::Dumper is a core module so I wouldn't expect problems with this regardless of user or perl version.
-
LWP::UserAgent is an installed module but you show no problems with this: cips.cgi appears to be reading LWP/UserAgent.pm without any issues.
-
JSON::XS is also an installed module and cips.cgi does have problems reading JSON/XS.pm.
How do file permissions or Apache (or equivalent) configuration differ between LWP/UserAgent.pm and JSON/XS.pm?
-
Use the strict pragma.
-
Use the warnings pragma instead of the -w switch as recommended in perlrun:
"... the lexically scoped use warnings pragma is preferred."
If the information I've provided results in a fix for JSON::XS,
you may find this also leads to a solution for your Email::Stuff problem.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.