in reply to Collapsing smaller scripts into a larger one, request for comment
No.
Keep all your files.
But keep your data and your code separate.
Remove the code from your scripts because it doesn't belong. Remove everything before __DATA__.
Rename your .pl templates to .lat or .dat
Collapse any other page specific code needed into subroutines inside a module.
This is all that should be in your master script
use lib ...; use MyStuff; MyStuff::run_cgi( '/path/to/root/or/config/if/nonstandard' );
Eventually get inspired by https://metacpan.org/release/Template-TT2Site/tt2site and make the dynamically generated static parts of your site truly static
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Collapsing smaller scripts into a larger one, request for comment (no)
by Lady_Aleena (Priest) on Jun 03, 2020 at 03:42 UTC |
In Section
Seekers of Perl Wisdom