Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to perl crashes parsing huge script - how to find a line that crashes it?

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! :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://668894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-23 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found