Thanks for your inputs, I have updated the relevant code .
perl -wc VPage.pm
VPage.pm syntax OK
VPage.pm file and using same Login.pm
package MyLib::VPage;
use strict;
use lib '/var/www/cgi-bin/WebApp/libs';
use base 'MyLib::Login';
sub cgiapp_init {
my $self = shift;
$self->SUPER::cgiapp_init;
$self->authen->protected_runmodes(
'myrunmode',
);
}
sub myrunmode: StartRunmode {
my $self = shift;
my $template = $self->load_tmpl("myrunmode.html");
### guts of old vpage.cgi go in here
print "Testing after login success"; # im doing lot of process with
+CGI and perl script
$template->param({
OUPUT => $output, # your output goes in here...
});
return $template->output;
}
1;
vpage.pl - file
#!/usr/bin/perl
use strict;
use lib '/var/www/cgi-bin/WebApp/libs';
use MyLib::VPage;
my $webapp = MyLib::VPage->new(
PARAMS => {
cfg_file => ['simple.ini', 'vpage.ini'],
format => 'equal',
},
);
$webapp->run();
-
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.
|