in reply to best way to understand existing perl code

I assume, you were assigned to jump into the cold waters of maintaining an existing project?

I would start to find answers to the following questions:

Finally, for some people the learning by osmosis principle works. Skim through the sources, skim again, take notes while doing so. Finally, you'll have a mental map where to find something and how the pieces are connected to each other. Write new tests if you miss something or want to understand certain aspects. Experiment, but be sure you can undo your changes (e.g. version control).

HTH

Update: Additional PM resources:

I am not aware of a book that covers the topic of assessing an existing project. Maybe McConnell / Code Complete, Martin / Working Effectively with Legacy Code, or Fowler / Refactoring: Improving the Design of Existing Code might have some helpful sections about it? Conway / Perl Best Practices might help you help the next generation (people that take over from you).
(in response to 919191)

  • Comment on Re: best way to understand existing perl code

Replies are listed 'Best First'.
Re^2: best way to understand existing perl code
by balakrishnan (Monk) on Aug 08, 2011 at 10:29 UTC
    Hi,

    Thank you very much for your quick response.


    Can you give any standard book reference or other material to get into it further ?

      Peter Scott's Perl Medic is an excellent resource, if you're already moderately proficient with Perl 5.