in reply to Re: Regex Substring SORT Conundrum
in thread Regex Substring SORT Conundrum

I have the full 90 books (including the Apocryphal ones, just in case they're ever needed) in a hash of well over 1000 lines. I didn't figure anyone would wish to peruse it for their reading pleasure, so I shortened it. However, if anyone else wants it, I suppose I could dump the whole thing to a code box here. I guess I'm not sure what the forum does with way-too-long posts. I don't think I'd want it reaped. :) (And I haven't figured out how to make such nice additions to my home node as some posters here seem to do with extra bits like this.)

Thank you for your suggestions.

Blessings,

~Polyglot~

Replies are listed 'Best First'.
Re^3: Regex Substring SORT Conundrum
by BrowserUk (Patriarch) on Mar 05, 2015 at 16:47 UTC
    a hash of well over 1000 lines.

    NP. I was just explaining why I hadn't dealt with that bit. So long as you understand where and how to use your hash in my snippet, is all that matters.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

      I just found that your solution also seems to work. It also does not sort the numbers, just the books, which left me a little puzzled, because it appeared setup to do both. One anomaly came out in the sort...the book of "Numbers" was thrown into the list in the wrong place! (Perl wouldn't be translating the name to a value, would it?) I double-checked the weighting, and there should have been no issue there. Thank you, again, for your helpfulness.

      Blessings,

      ~Polyglot~