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]