Interesting. Using your code in another script in the same directory. I'm getting the following. Not sure where that gets me but results I did not expect.
==> /var/log/apache2/error.log <== Directory is /srv/site/scripts Contents are total 36 drwxr-xr-x 2 derek derek 4096 Feb 4 17:49 . drwxrwxr-x 10 derek derek 4096 Feb 4 17:04 .. -rw------- 1 derek derek 12288 Feb 4 17:49 .test3.pl.swp -rw-r--r-- 1 derek derek 7 Feb 4 17:09 config.txt -rw-r--r-- 1 derek derek 434 Feb 4 17:41 test.pl -rw-r--r-- 1 derek derek 394 Feb 4 17:41 test2.pl -rw-r--r-- 1 derek derek 118 Feb 4 17:49 test3.pl
As far as Apache goes the config is just simply:
<Files ~ "\.(pl|cgi)$"> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun Options +ExecCGI PerlSendHeader On </Files>

Quick update and curious as to the difference.

The header of the file on the old server is: #!/usr/local/bin/perl

The scripts that we've been testing with are: #!/usr/bin/perl

And the one provided in your test script was: #!/usr/bin/env perl

When we update the scripts in questions to use the #!/usr/bin/env perl they seem to work.

Thanks for your help been a long time since I've done perl and coming back at this as a noob.


In reply to Re^2: Perl - open with Apache by djneely
in thread Perl - open with Apache by djneely

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.