Probably the authors just meant "if you want to type in more members of the list," i.e. you won't have to add the comma to the previous line should you want to go on and add 4 to @numbers.

reference : p. 48 of 2nd edition of Programming Perl, this is my interpretation.

Update Grist for my interpretive mill: note the multiple kinds of efficiency discussed in Ch. 8, one of which is "Maintainer Efficiency", which applies to the present case quite nicely.

Second update : I don't proclaim guru-hood, but I'd suggest Effective Perl Programming, and second chromatic's suggestion about Conway's Object-Oriented Perl. You might also take a look at the Reviews section and see if any of the books there catch your interest.

Philosophy can be made out of anything. Or less -- Jerry A. Fodor


In reply to Re: Optimized array by arturo
in thread Optimized array by arhuman

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.