in reply to variation on splitting a string into elements of an array
in thread splitting a sequence using unpack
yields:my $line ='atgcatccctttaat'; my @trips = unpack('a3X2' x (length($line)-2), $line); print join "\n", @trips;
atg tgc gca cat atc tcc ccc cct ctt ttt tta taa aat
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: variation on splitting a string into elements of an array
by Roy Johnson (Monsignor) on Mar 02, 2005 at 19:00 UTC |