Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Reading other people's modules and codes

by Swalif (Scribe)
on Sep 04, 2011 at 08:15 UTC ( #924049=perlquestion: print w/replies, xml ) Need Help??
Swalif has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks,

It's been a while now since I started learning Perl.
I've read some books (learning perl, modern perl...),
wrote some wxPerl, Dancer applications..
I am enjoying learning..
Overall if I want to solve a problem or write an application I can write some code which is not that great but does my job... One aspect that I still don't see any progress in : is reading other peoples code.
For small scripts I can do some reading and modifying but I've downloaded some modules from CPAN and I don't understand the codes let alone contribute to them. I really appreciate your advice in this regard...
  • Comment on Reading other people's modules and codes

Replies are listed 'Best First'.
Re: Reading other people's modules and codes
by Anonymous Monk on Sep 04, 2011 at 09:24 UTC
      --What are you trying to learn by reading other peoples code?
      I want to contribute to some existing projects and benefit from working with the community..

      I really appreciate your time and effort for this wonderful response. I'll go through all of the questions and resources one by one ...
      Also thank you Khen1950fx for your reply...
      my regards

      ++ This was a great answer to the posted question. Very informative and helpful. I've often had the same problems, and I've made it a point to read as much code as I can get my eyes on while I'm here (on PM). These links are a great addition to that.

      "The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.." -- George Bernard Shaw

      Thanks for posting these links. As I'm still a beginner with Perl, I'm also trying to learn as much as I can, whether it's by reading books, writing code, or looking for various Perl related sites, the monastery included.

      I'm sure that these links will also help keep me occupied for the next 10 years. Thanks again for the post.

Re: Reading other people's modules and codes
by Khen1950fx (Canon) on Sep 04, 2011 at 09:07 UTC
    When I first started in Perl, I held on to perlintro like white on rice. I gives an extremely useful overview of Perl that will help you understand other people's code. Just make a habit of reviewing it everyday, and you'll get it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://924049]
Approved by Corion
Front-paged by Corion
[TCLion]: I am breaking down the line and putting the date in the correct order during output
[TCLion]: at least that's the plan
[1nickt]: Corion this looks good, from the pod: "there are 9000+ variations that are detected correctly in the test files (see t/data/* for most of them). If you can think of any that I do not cover, please let me know."
[TCLion]: some moron put the date like this : Mon Feb 20 09:31:30 2017
[Corion]: 1nickt: Yes, the module sounds promising indeed
[1nickt]: "putting the date in correct order" how?
[Corion]: TCLion: Whee ;)
[TCLion]: need to put like this : 2017-02-20 09:30:53
[1nickt]: That's why I asked if you are using DateTime. It has a large number of supporting modules (the author likes the term 'eco-system') so if you are already creating a DateTime obj from your dates, this module would read in the mnoron-formatted 1s seamlessly
[TCLion]: when I put the date together it looks like : 2017-Feb-24 (month is the problem)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2017-03-23 14:53 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (288 votes). Check out past polls.