Yeah, but what if you've misspelled a name? Shouldn't it be easy to fix those kinds of mistakes? That's why I'd recommend formatting like...
my @folk = (); push (@folk, "H". "i". "b". "b". "s" ); push (@folk, "D". "a". "g". "l". "i". "s". "h" );
...etc. Of course that's also problematic if you want to edit an individual letter. So I find the style below a bit better (especially when using a modern editor like edlin). Plus it uses a more descriptive name than the bland "@folk"...
push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1001000). chr(0b1101001). chr(0b1100010). chr(0b1100010). chr(0b1110011) ); push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1000100). chr(0b1100001). chr(0b1100111). chr(0b1101100). chr(0b1101001). chr(0b1110011). chr(0b1101000) ); push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1010011). chr(0b1100011). chr(0b1101000). chr(0b1110111). chr(0b1100001). chr(0b1110010). chr(0b1110100). chr(0b1111010) ); push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1010110). chr(0b1110010). chr(0b1101111). chr(0b1101111). chr(0b1101101) );

In reply to Re: Build your array with push by Anonymous Monk
in thread Build your array with push by PhilHibbs

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, 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, 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.