Hi, Thanks for your suggestion and time. I tried the method and Unfortunately it does not working.
The browser getting “The server encountered an internal error or misconfiguration and was unable to complete your request”
and apache log file show below error.
syntax error at /var/www/cgi-bin/WebApp/libs/libs/MyLib/VPage.pm line
+24, near "}"
BEGIN not safe after errors--compilation aborted at /var/www/cgi-bin/W
+ebApp/libs/libs/MyLib/VPage.pm line 24.
Compilation failed in require at /var/www/cgi-bin/WebApp/libs/vpage.pl
+ line 4.
BEGIN failed--compilation aborted at /var/www/cgi-bin/WebApp/libs/vpag
+e.pl line 4.
Premature end of script headers: vpage.pl
And I’m not sure, what has to define in the “myrunmode.html” file as well.
sub myrunmode: StartRunmode {
my $self = shift;
my $template = $self->load_tmpl("myrunmode.html");
### guts of old vpage.cgi go in here
my $output="<b> Testing page</br>";
$template->param({
OUPUT => $output; # your output goes in here...
});
return $template->output;
}
Please let me know if you any suggestion on this, Thanks in advance!
Struggling here for last couple of days.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|