Welcome to the Monastery, Vikramkone.

I agree with your perception that some of the replies to your question in this thread (and in the Chatterbox) have had a mocking tone. I will attempt to be as straightforward as possible in explaining this behavior.

I believe that the PerlMonks have perceived your question as a selfish demand for service, rather than a request for assistance. The PerlMonks are a collection of volunteers who provide guidance, education, and in most cases, lightning-fast, robust Perl code solutions to those seeking help -- provided that there is some indication that the seeker has made some attempt to solve the problem himself. In my opinion, your original post shows no effort on your part.

While I understand why you feel mocked, I implore you to re-read most of the responses to your question. There are very specific links to useful documentation which should help you learn to solve your problem.

The Monastery is a tremendous source of Perl information. The most effective way to tap into the resources here is to post some code you have written. If you do so, with the proper positive attitude, you will be overwhelmed with positive feedback.

By the way, moritz's reposonse, ironically, and in my opinion, may be the most sarcastic of all. Perhaps his code actually solves your problem (I did not try it). However, it is probably a good candidate for the Obfuscated Code section. I have no idea what it's doing -- I would have to stare at it a while to figure it out. Do you know what any line of code does? Any character in any line? If not, you probably shouldn't use it.


In reply to Re^3: How to count no of words in a text input file? (Welcome) by toolic
in thread How to count no of words in a text input file? by vikramkone

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.