Hm,
your httpd.conf might need a line as:
AddHandler cgi-script .pl
also.
Did you check your result.pl for what it produces? Does it write a new document header, eg. if it would use cgi.pm's objects.
Then it would seem that you force your server to process a processed document.
How does your search.pl look alike, is there a target set as an argument for the form which might force the clients browser to show the result in a new window?
Well you might try to use apaches ability (other http servers have this as well) to process server side includes. then your code would look alike:
<html> <!--#include virtual="/1337/common_inc/top_section.inc"--> <head> </head> <body> <!--#exec cgi="/cgi-bin/1337/search.pl"--> </body> </html>

But I would recommend to clearly review the code of your above named perl scripts (and check what they return, simplest call them from a shell) and make sure they behave as you think they do. And you might think about uniting both scripts, or utilizing the one or the other.

Have a nice day
All decision is left to your taste

In reply to Re: sorry guys - try this one: perl, phtml and apache - please read by little
in thread sorry guys - try this one: perl, phtml and apache - please read by Mac

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.