Hi, My name is Hemanth and i am very new to perl script. We came across this error when one user trying to run some report. here is the error message - "malformed header from script. Bad header=**** Unable to open the initia: glcashbyfund.pl, referer: http://cgi.portseattle.org/mis/gl/glactivityreportmenu.html". I did compare this script with other working ones and syntax is same. so not sure how i can debud this error. I am very new to this scripting so any help will appreciated. some code snippet from glcashbyfund.pl Let me know if you need any more information. Thanks, Hemanth

#!/usr/bin/perl #===================================================================== +======== # Includes and Parses input to script, e.g. I'net FORM data #===================================================================== +======== use CGI; use CGI::Carp qw(fatalsToBrowser); use Sybase::CTlib; require "/var/www/html/mis/include/cgi-lib.pl"; #require "/var/www/html/mis/include/config_fsprod.inc"; require "/var/www/html/mis/include/config_fsrpt.inc"; &ReadParse;

In reply to Malformed header error by hemusc

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.