Instead of:
$dna[$i]You want:
$dna->[$i]Since $dna and $complement are array references, you need the arrow to de-reference back to the underlying array.
In reply to Re: subroutines!!!
by grantm
in thread Problem while refactoring code into a subroutine (was: subroutines!!!)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |