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


in reply to Algorithm complexity

As someone touched on the big O notation and I know nothing on that subject I will offer another tool for measuring complexity.

Look up on cpan McCabe which is a very simple formula for determining the complexity of a particular piece of code. You can also look up Cyclomatic complexity for a explanation of the subject.