Welcome to the Monastery | |
PerlMonks |
Re: perl crashes parsing huge script - how to find a line that crashes it?by sundialsvc4 (Abbot) |
on Feb 19, 2008 at 22:05 UTC ( [id://668894]=note: print w/replies, xml ) | Need Help?? |
I am also going to echo the “break it up” admonition. And yes, I know that breaking up is ... well, you know the rest. Unfortunately, any programmer who built a 6-megabyte single source file never did know what (s)he was doing, but was going for a weird notion of job-security. In the long run, such a program is completely unmanageable, and it becomes a liability to the business. (This could be part of the reason why that person is now a “previous” programmer...) An arbitrarily-large Perl program can be subdivided into packages with just a little effort. As the file becomes smaller, it will be easier to do. The first step will be to try to map out the big chunks of the existing code which are not used constantly, separating them from the chunks that are common-to-all. A 6-megabyte monstrosity might contain many megabytes of code that are almost never used: such material can be required when ... well, you know ... when required! :-)
In Section
Seekers of Perl Wisdom
|
|