in reply to Re^4: Find the boundaries of a substring in a stringin thread Find the boundaries of a substring in a string
my $seg_end = pos ($seq)-1; my $seg_start = $seg_end - $seg_length+1; [download]