in reply to Is this a valid approach to finding if a path through a set of points has completed?

Are you looking for the Hamiltonian path?

There are a number of search results here on Perl Monks, and also on the web. Google book search has one for Mastering Algorithms with Perl, which should also be helpful.

Quantum Mechanics: The dreams stuff is made of