yes, this is the only type of question I ever ask.

Suppose I have a line that begins with nine whitespaces followed by a particular value, followed by 10 more whitespaces, then another value, so it looks like this:
         none          lt2dpmnt
(This is merely an example; this occurs many times throughout the data file, and I need get out each and every instance of it to be put in a table.)

I want to get those two values and put them into variables. I have tried this in a variety of ways:
(\$meanH1, $meanH2) = ($1, $2) if /^s{9}/;
This didn't work, so I tried this:
(\$meanH1, $meanH2) = ($1, $2) if /^s+/;
This too did not work. Really, it seems almost laughably simple, and I am rather embarassed by my inability to get it right. Little help?

In reply to regular expressions query by apocalyptica

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.