Peter, You know....the require() thing is very weird.
The first time I place the require (or make a change to the name, etc) in the perl script -- the command will run perfectly, however, as soon as I reload the page or revisit it w/out making any changes all of the information contained in those files disappears from the page? When I close the browser and reopen it .... I get the information in the include file, once, again? Thanks for your help with this one...... ~j ----- Original Message ----- From: "Peter Kappus" <[EMAIL PROTECTED]> To: "'Jason Jolly'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 4:21 PM Subject: RE: Perl "include" files > If you're just trying to implement some sort of templating for the > presentation of your site, I'd suggest looking at the HTML::Template module > or maybe HTML::Mason. > > If you're talking about code reuse, there are probably more effective OO > ways to create objects that you reuse, etc. > > But a quick and dirty solution that's worked for me is to put my config > variable assignments into an external config file and call it using: > > use vars qw($every $variable $in $the @configFile); #import our > variables > do "config.pl"; #set the variables > > to include commonly used functions, etc. try putting them in an extneral > file and including them like so: > > require "myFunctions.pl" #or whatever your file is called > > > What kinds of problems have you had with "require()" and "eval()"? > > HTH, > Peter > > > > -----Original Message----- > From: Jason Jolly [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 1:06 PM > To: [EMAIL PROTECTED] > Subject: Perl "include" files > > > I'm currently in the process of templating my entire site to provide a > consistent framework... > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]