what's the best way to share variables between main script and template files

2006-10-07 Thread GZ Dark
Hello,list, Give my main srcipt is index.cgi,it require the two files of "header" and "footer" which are HTML templates. Where in index.cgi: use "header"; some logic codes... use 'footer"; Then it'll generate a dynamic page. My question is,how can I share the variables defined in the inde

A newbie modperl problem

2006-09-28 Thread GZ Dark
At first I'll say sorry that have no experience for writting the modperl handler. When I wrote a simple handler like: $ cat CorpFB/Feedback.pm package CorpFB::Feedback; use Apache::Constants qw(:common); use strict; use Apache::Request(); sub handler { my $r = shift; $r->send_http_