On Sat, Mar 16, 2002 at 07:37:18PM -0600, Puneet Kishor wrote: > question from a newbie. How do I include a code fragment in a perl > script so it first gets included and then interpreted/compiled? > > Ok. that's the short question. In other words, this is what I am trying > to do -- > > I have one index.pl (this is a web app), and everything passes through > this. So, if the call is to index.pl?do=login then the login page is > included, if the call is to index.pl?do=verify then the verify page is > included. This is how I work in the world of other web programming (Cold > Fusion, PHP, etc.). This way I have to declare all my use statements (to > import packages), other declarations, param checking, etc. in one place. > I also have one master template, and everything else is simply > included...
look at HTML::Mason, you will like it :). <http://www.masonhq.com/> HTH Michael -- Dr Michael A. Maibaum - (W)+1 (415) 561 1682 - (H)+1 (415) 626 6733 <[EMAIL PROTECTED]> <URL:http://www.gene-hacker.net/>
