- or download this
@trips = join(" ", @trips);
- or download this
#!/usr/bin/env perl
use strict;
...
my @trips = unpack("a3" x (length($sequence)-2), $sequence);
my @shuffled = shuffle(@trips);
print "@shuffled\n";
- or download this
$ perl /tmp/shuf.pl
enter sequence and signal end with enter followed by ctrl d
aaabbbcccddd
sequence inserted : aaabbbcccddd
ccc aaa ddd bbb