One way to learn that i have not seen here YET is to read other peoples programs. While i have a CompSci background most of my insight has come from looking at how other people solve problems.

There are lots of programs that other people have written here, some advanced some basic. Search for a subject you are interested in solving and just read thru the code that has been posted already. Another such resource is CPAN. At first don't try to understand everything in the code, just try to generally follow their train of thought. Then if you like their style look deeper and try to understand the particulars in the code. Since this is a learning exercise rather than just copying their code and running it try to write your own base code using their techniques. If you run into a problem understanding something FIRST try to search for an explanation by yourself; the Perl documentation websites are useful for this. Your search may provide a number of explanations that will enhance your understanding of that process. Then if you still are confused post a question about it and i am sure you will receive much help to further your understanding of the problem.

As you progress it becomes time to "no longer invent the wheel", and use modules or other existing codebases. When i do this i like to leave comment links in my code that refer to where i learned the technique. But at first go ahead and get your hands and elbows dirty by writing your own code, even if it includes snippets of code from other people.


In reply to Re: Recomendations For Learning perl? by huck
in thread Recomendations For Learning perl? by adamZ88

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.