Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Visualizing the skeleton of a perl code

by chrestomanci (Priest)
on Feb 24, 2012 at 21:58 UTC ( #956010=note: print w/replies, xml ) Need Help??

in reply to Visualizing the skeleton of a perl code

By the blue-coded structure I presume you are referring to a part of the perl syntax that your editor is colouring blue. Seeing as I don't know what editor you are using, or how you have configured it, I don't know what sort of syntax you are referring to.

I have found in the past that if I want to understand the flow of a large perl script that I have not seen before, a good way is often to to run it under the Devel::NYTProf profiler. The report it generates will contain loads of performance information which you can ignore for now, but it will also tell you for each function what other functions called it, and how often, so by reading the report you can get an idea about the flow of the program, and which parts are important, you can also get a clue where the dead code is, as it will not have any calls to it. (Though make sure you allow for error handling code before you remove anything.)

  • Comment on Re: Visualizing the skeleton of a perl code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956010]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2018-04-21 13:53 GMT
Find Nodes?
    Voting Booth?