Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Regex Substring SORT Conundrum

by Polyglot (Chaplain)
on Mar 05, 2015 at 16:33 UTC ( [id://1118915]=note: print w/replies, xml ) Need Help??


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

Thank you so much for your prompt and complete reply, with a working example included. I much appreciate it. I tested your example, and it worked fine. However, when I tried to adapt my code to follow your solution, I was still not seeing the results I had hoped (just couldn't seem to get it to work). I don't understand "map" very well at all, and that may be part of my weakness. Yours seemed like a good solution, and perhaps more proper, but I'll be happy with anything that works. In my case, efficiency is not important, as this is not going to run very often, so anything that works, however kludgy it might be, will suit. (Terrible thing to say, I suppose, but sometimes my time is more valuable than the computer's.)

Blessings,

~Polyglot~

Replies are listed 'Best First'.
Re^3: Regex Substring SORT Conundrum
by choroba (Cardinal) on Mar 05, 2015 at 16:56 UTC
    Some of the results that sorted wrongly for you probably had a format different to what you showed here. Can you check that? Also, map is just a for in disguise: in this particular example, it takes the citations, and maps each onto an array reference, containing the book, chapter, verse, and in case of the ST, the citation itself to be retrieved after sorting.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1118915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found