... you need to use less than not greater than ...
I would say tryingnottofailmytes needs to use less-than-or-equal
$i <= $length-1
as the for-loop condition in the OPed code.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Trying to use substring to find a reverse complement in DNA,
by AnomalousMonk
in thread Trying to use substring to find a reverse complement in DNA,
by tryingnottofailmytes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |