This is great, but the point of all this wasn't how to learn to use split (or anything else). It was an answer to your question as to what I felt was missing in Perl books. It was that question I was addressing.

No doubt, there are many places where I could find out how to use split. If nothing else, I could Google it. However, this (and many similar problems) arose for me as I tried to learn Perl through books. I bought almost every O'Reilly book about Perl I could find - several hundred dollars worth. It was my hope that somewhere in those books I would find some explanations about how things worked. Unfortunately, those explanations were not clear, nor were the examples. I consider this a deficiency in the books, and that was the original question - what's missing from the books?

In my opinion, the perldocs are inadequate for learning. They're handy when you're at the computer, but they are awkward and inconvenient to read, and useless when you're not at the computer. Another problem is that they presuppose some additional knowledge, such as what the name of the document is that contains the information you're seeking. I prefer paper and ink books. I don't mind forking over money for books. I consider it a good investment. I can read them even when I'm not at the computer, while on the train, etc. Somewhere in all the books I bought, there should have been a simple explanation of how to use split, and a simple example showing how it is done. Among all those books, I should have been able to go to the index, find "split", and find the information I sought. This did not happen - and split was only one of many questions I could not get answered.

So, this is my opinion of what Perl books are missing. The fact that it is possible to find the information elsewhere is irrelevant to that question. In general, the examples presented in the books were overly complex, and did not isolate the function or concept under discussion. They generally included extraneous information that was confusing. Not only that, quite often they used shortcuts that further obscured the main point. Most likely this was because the authors were so conversant with Perl that these examples seemed painfully obvious to them. However, they are not obvious to a newcomer to Perl. Note that I am not a newcomer to programming, just to Perl.

As I said before, you can't please everyone. No doubt there are people who complained that there were too many examples, or that they were too simplistic. That's always going to happen - someone's going to be unhappy about something. So I just gave my opinion, which could be in the small minority - maybe most others don't need things spelled out for them, and would prefer meatier text. I certainly don't insist that my opinion is the only one, or that it's somehow more valid than someone else's. It's just how I felt.


In reply to Re^5: What's missing in Perl books? by spiritway
in thread What's missing in Perl books? by brian_d_foy

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.