In response to your request ...

The website is http://www.fleetops.net

The tutorial ... a question ... The "arrays" ... input is a fixed expression? By that I mean 'pattern match'. grep for '^green' in a file, that is exactly what you get. The result is the first 'green' starting a line in that file. The problem I face, is the rest of the line. The rest of the line has the "value" of the key-pair.

The analogy / examples :
The key-pairs ( variable = value ) are denoted by the 'equal sign'. Example #1 shieldgeneratortargethardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" " +hp06" "hp07" "hp08" "hp09" "hp10" Example #2 shieldgeneratortargethardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" " +hp06" "hp07" Example #3 shieldgeneratortargethardpoints = "hp07" "hp08" "hp09" "hp10" "hp11" " +hp12" "hp13" "hp14" "hp15"

Notice the variance the values ( number of as well )? I am puzzled how this could ... be input without major problems. The "values" are highly random in 'length/style/number of' terms. That was fatal to bash shell script exact pattern matching.

I posted more info/lengthy examples in another response on this same ?node?thread?

In reply to Re^2: re-ordering lines of text in a file? by moddingforfun
in thread re-ordering lines of text in a file? by moddingforfun

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.