Help for this page

Select Code to Download


  1. or download this
    @trips = join(" ", @trips);
    
  2. 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";
    
  3. 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