Recreated the crucial indexes hashref
Multiple changes:

Incremented program version
Fixed finger index value
Renamed the potentially confusing $seen to $last
Removed the : '?' & || '?' cruft
Moved finger index dec. adjustment to sum_span()
Improved comments