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


in reply to Re^4: Check word presence WITHOUT hashes or grep
in thread Check word presence WITHOUT hashes or grep

Try to write the pseudo code, explaining the point of each step, first. Then make an attempt at an implementation. I'll comment on that if you get stuck and post it here.