This has been bugging me for a few weeks now and I really can't figure out whats causing it.
I am working on a simple news feeder (to update the homepage of my site).
To try and clean up the code a little I want to distribute the subroutines into groups spanned across .pl files.
So I have the core file, I want a .pl file for each of the following types of subroutine:
1. For connecting to the mySQL Database
2. For Template Stuff and related bits (as the admin side doesn't have a template)
3. For Validation Subroutines
4. For Security Subroutines
5. For the Edit/Post/Delete/Archive subroutines.
I want to do this through requiring the .pl files.
The files are created and required. I have required them correctly:
as: require "filename.pl";
Each .pl file simply contains a set of subroutines that can be called within the program (which is complete).
The problem is:
I get a blank screen instead of the application.
Now for the wierd part.
I made a really simple program to test requiring files.
Heres the results:
If I require any 2 .pl files (doesn't matter which - to a point, certain ones don't seem to like each other) it will work.
If I add any more than 2 .pl files I get a blank screen.
I have tried just about every combination of the .pl files too see if there is a "bad" .pl file that was screwing it up, but there isn't.
I'm really confused about this one...
Anyone have any ideas as to why its happening and how to fix it?