in reply to Re^3: In-place sort with order assignment
in thread In-place sort with order assignment

For "words" read 'searchable terms'.

Which would include strings of digits; proper nouns; and in a generic solution, any language.

For testing, I'm currently using split /[^A-Za-z0-9.'+-]+/, $line; but ultimately that should be configurable.


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".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy