http://www.perlmonks.org?node_id=712524


in reply to Re^2: Challenge: "Words" In A String
in thread Challenge: "Words" In A String

pjotrik,
I like the way you distinguish between word substrings and non-word substrings. Unfortunately, the order isn't correct. Given the way you return the results and print them, adding an order wouldn't be difficult. I haven't tested this against any large sample data with potential cases but it looks good from eyeballing it :-)

Cheers - L~R