substr can take a third parameter indicating length, not ending position. In other words:
my $sub = substr ($seq, $end, 1000);
I hope this helps you with your problem.
In reply to Re: why is substr behaving odd?
by !1
in thread why is substr behaving odd?
by usless_blonde
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |