Found it - in not using the recommended use strict, you have two variables with very similar names - $segSize and $seqSize. The latter, not being defined, adds nothing to $offset.
Make all your code start with:
and this particular problem will never go unnoticed again.#! /usr/bin/perl -w use strict; ...
In reply to Re: numbers not adding up!
by pbeckingham
in thread numbers not adding up!
by wusphere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |