#!/usr/bin/perl use strict; my $test = 'ACTGACTGATGCATGCATGCATGCCGTACGTACGTACGT'; for (my $i = 0; $i <= length($test); $i++) { print substr($test, $i, 3) . "\n" if ( ($i % 3) == 0 ); }
In reply to Re: split a squence by 3 letters
by bichonfrise74
in thread split a squence by 3 letters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |