I resolved this problem and only the global variables is the issue.
I changed all the global variables to be passed as arguments to the other functions and this resolved my problem.
Hope this will be useful to other guys working on MOD_PERL
I faced problems using mod_perl and HTML::Template.
The rows displayed using HTML::Template gets duplicated on every reload of the page developed using CGI/Perl only in mod_perl environment.
Otherwise its displayed properly.
I understand that its a global variable problem with mod_perl. But Have anyone faced this problem and resolved this.