Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl etiquette - eval

by l3nz (Friar)
on Jan 16, 2004 at 13:12 UTC ( [id://321781]=note: print w/replies, xml ) Need Help??


in reply to Perl etiquette - eval

From what you say, it seems the script you're tring to amend is a mess - likely made of unreadable patches, one after the other. At this point, what I would do is to infer the main control flow of the script to understand what's going on. In the case you know you have a performance problem, I'd instrument it in order to obtain an execution profile.

In a scenario like this, where you know you are going to modify soething you don't completely understand, it's a good idea to create a regression test suite so you know you won't be breaking something when you amend it. And if you do that while you're studying it, you will discover it won't tke so much time after all.

In any case, be sure not to optimize before 1) profiling and, 2) understanding what the script does.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-16 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found