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


in reply to I refuse to explain this

An explanation, sort of, is at Re: knapsack problem solved by regex.