if that is the entire extent of your opinion

Far from it!

I found that particular statement "hilarious" because you seem to waste an inordinate amount of your valuable time italicising, bolding and underscoring your posts. Perhaps you would do better to devote that time to writing and posting code that compiles and runs to produce the required results, which you should also post to demonstrate those skills that you so often allude to. Giving you the benefit of the doubt, you might have done this on occasion but I can't recall any instance where you have.

Going back to the "extemporaneous" solution you originally posted, there's nothing particularly wrong with the approach. The execution, however, leaves a lot to be desired, e.g. initialising my @lines = []; gives us an array whose first element is an empty anonymous array rather than an empty array. The prevalence of these "beginner's" mistakes render those of your posts containing code worthless and dangerously misleading for genuine beginners who visit this site.

I am actually considerably older than 41, having started my IT career in 1977. I am now retired but still enjoy tinkering with code, Perl code in particular, and producing solutions to help others.

Cheers,

JohnGG


In reply to Re^6: Check multiple lines exist in a record by johngg
in thread Check multiple lines exist in a record by gbwien

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.