- or download this
@triplets = unpack ('(a3)*', $line);
- or download this
# throw away trailing crud
pop @triplets if $triplets[-1] !~ /.../;
- or download this
my $line = 'atccatccctttaat';
my @triplets = unpack( '(a3)*', $line);
...
pop @triplets if $triplets[-1] !~ /.../;
pop @triplets2 if $triplets2[-1] !~ /.../;
pop @triplets3 if $triplets3[-1] !~ /.../;
- or download this
my @triplets = unpack("x${skip}(a3)*", $line);
pop @triplets if $triplets[-1] !~ /.../;
- or download this
--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
map{y/X_/\n /;print}map{pop@$_}@/for@/