Hi, Dave,

(If there are a bunch of underlined numbers throughout this posting, I apologize--the numbers are supposed to be inside square brakets.)

Okay, I'm just about there. I'm starting to get this now, and things are starting to work. I have two small questions left...

1) In the line:

map { [ $, (split /:\s*/, $_->[3])[1] ] }

Does this indicate the 4th line of the record [3] is split by a ":" and the stuff in the [1] address of the split is what ultimately ends up in the [1] position of the map? <Whew!> So if I was splitting by just plain 'ol \s+ qualifiers and the 5th position was a number I needed, I'd only change the [1] to a [4], right?

2) When I try to do a:

print for @sorted_recs;

all I get is a bunch of ARRAY(hex#) lines printed out. It looks like the records have been sorted, but the addresses are not revealing the original contents ($_->[0], in this case). I'm not sure how to correct that.

Thanks again for your excellent guidance--I really appreciate it.

Best Regards,
-Chris

Edited by Chady -- fixed the formatting.


In reply to Re: Re: Re: Re: Sorting question... by Anonymous Monk
in thread Sorting question... by Anonymous Monk

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.