Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How do I find the missing curly brace??

by stevieb (Canon)
on Dec 31, 2024 at 09:39 UTC ( [id://11163454]=note: print w/replies, xml ) Need Help??


in reply to How do I find the missing curly brace??

Have you ever had a perl script that is like 20000 lines long

Yes, inherited.

Learn VCS. Learn to commit small pieces with detailed but concise messages. Then break that up into multiple functional subroutines. Each sub should do only one thing (if possible), and its name should reflect what it does. If at all possible, try to keep the length of each sub so you can see the entire thing on one screen.

Capture data from the script now (specifically print out information from each small piece you're going to change), write tests for each small piece you're going to migrate to a subroutine or other library, ensure the new code does what the old code does, then move on to the next section. Now you've got regression tests.

  • Comment on Re: How do I find the missing curly brace??

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2026-01-23 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (125 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.