in reply to numbers not adding up!
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; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: numbers not adding up!
by wusphere (Novice) on Aug 07, 2004 at 23:19 UTC | |
by pbeckingham (Parson) on Aug 07, 2004 at 23:25 UTC | |
by wusphere (Novice) on Aug 07, 2004 at 23:41 UTC | |
by pbeckingham (Parson) on Aug 08, 2004 at 00:00 UTC | |
by Popcorn Dave (Abbot) on Aug 08, 2004 at 18:15 UTC | |
by CountZero (Bishop) on Aug 08, 2004 at 18:53 UTC |