Hi All -
I have two perl scripts using CGI that are part of a larger application. Both have the following lines to begin the creation of a web page:
print $cgi->start_html(-head=>meta({-http_equiv => 'Content-Type', -
+content => 'text/html'}),
-title=>"pagetitle", -bgcolor=>"#dcdcdc", -al
+ink=>"#4682B4",
-vlink=>"#4682B4", -link=>"#4682B4");
The problem I am having is this: sometimes when I click one of the links to execute either of the two scripts, the page will display fine. Other times, I get an Internal Server Error, and the following line in my Apache error_log:
[error] Undefined subroutine &Apache::ROOT::perl::ms_support_2epl::met
+a called at /var/www/htdocs/imap-bin/ms_support.pl line x.
where 'line x' corresponds to the 'print $cgi->start_html...' line above.
Sometimes script 1 works, but not script 2. Sometimes the reverse is true. Sometimes both work, and sometimes neither. I am pulling my hair out over this! Does anyone have any suggestions?
Thanks for your time!
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.