Dear davido
First of all, thank you for answer that fast. (:

Now, the points that still obscure to me:

Don't use study when the target string is short.
I have several years of experience coding perl, and this still an obscure point to me: What should I consider as a short string? I'm sure that 20 chars is short -- that's obvious. But how about 400, or even 2000 chars? Is that short?

Don't use study when you plan only a few matches against the target string.
Again, I'm in lack of a precise criteria to relay on: what shall I assume as a "few matches"? I know for sure that one or two is obviously "a few". But how many more shall I consider "a few"?

Don't use study when Perl has no literal text cognizance for the regular expressions that you intend to benefit from the study. Without a known character that must appear in any match, study is useless.
Sorry, I don't know what is "literal text cognizance", can you please explain it to me? (many thanks in advance!!)

Once more, thank you very much for care and answer, and thank you very much for sharing your knowledge.

May the gods bless you.


"In few words, translating PerlMonks documentation and best articles to other languages is like building a bridge to join other Perl communities into PerlMonks family. This makes the family bigger, the knowledge greather, the parties better and the life easier." -- monsieur_champs


In reply to Re: Re: Help on decide when study by monsieur_champs
in thread Help on decide when study by monsieur_champs

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.