I would first try:
#!/usr/bin/perl use strict; use warnings; use CGI; # Assumption use CGI::Carp qw( fatalsToBrowser ); # Rest of the code
This will translate your Perl errors and send the output to the browser.

The "Premature script headers" can sometimes be someting that is easily missed and easier to fix.

Try the following if the above snipped doesn't help much:
print "Content-type: text-html\n\n";
This will provide the output with enough headers to be processed as an HTML document.

If the content-type is not the issue, I would certainly make sure you debug with the Carp snippet. You can, naturally take out the 'use' when you're finished debugging, however it will usually point you in the right direction of the problem.

Also, make sure the file permissions are satisfactory to execute on the server. You should be safe with chmod 755 <FILE> (-rwxr-xr-x) if not already set this way.

Good luck!

---hA||ta----
print map{$_.' '}grep{/\w+/}@{[reverse(qw{Perl Code})]} or die while ( 'trying' );

In reply to Re: Problem: SOAP via CGI with PERL by wazzuteke
in thread Problem: SOAP via CGI with PERL by Anonymous Monk

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.