Feztaa
03-07-2002, 02:40 AM
Hello,
I'm working on a perl script (it generates the static content of my website), and it's getting very large.
I was just wondering if there was some way I could split it up into different files, and then "source" those files into the main script so that it still works?
For example, the project I'm working on is object oriented, and I'd like to have the package definition in one file, and the actual object creation and manipulation in another file.
I know I could split off the package into it's own file, and put it in /usr/lib/perl5/5.6.1, then use the 'use' command to use that package, but I'd prefer to keep all the files in one directory if possible.
Thanks ;)
I'm working on a perl script (it generates the static content of my website), and it's getting very large.
I was just wondering if there was some way I could split it up into different files, and then "source" those files into the main script so that it still works?
For example, the project I'm working on is object oriented, and I'd like to have the package definition in one file, and the actual object creation and manipulation in another file.
I know I could split off the package into it's own file, and put it in /usr/lib/perl5/5.6.1, then use the 'use' command to use that package, but I'd prefer to keep all the files in one directory if possible.
Thanks ;)