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


in reply to List manipulation headache

When encountering a problem such as this, I ask "If you were instructing a child how to solve this, what would you do?".

Don't worry about the specific Perl (or whatever) code. If you can't explain the solution in your native language, you can't write the software...