------------------------------------------------
On Mon, 25 Aug 2003 17:30:35 +0100, "Jattie van der Linde" <[EMAIL PROTECTED]> wrote:

> How can I call a function from my main script file located in a seperate file i.e. 
> for instance a reusable piece of code that will generate the index of my site 
> without having to copy the code to every singe page that I generate?
> 

Well on the Perl side of things you can look into 'require' and 'use' in particular. 
But you may want to read less specific documentation on the subject such as the 
perlmod man page:

perldoc -f use
perldoc -f require
perldoc perlmod
perldoc perlmodlib
perldoc perlsub

And drieux's rants on the subject of building out libraries...

However, if you just want to include the same index on every page you are better off 
building it statically and then using a server side include to drive it rather than a 
script, your cpu will thank you...

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to