Help for this page

Select Code to Download


  1. or download this
    @triplets0 = $line            =~ /(...)/g;
    @triplets1 = substr($line, 1) =~ /(...)/g;
    @triplets2 = substr($line, 2) =~ /(...)/g;
    
  2. or download this
    push(@triplets, [ substr($line, $_) =~ /(...)/g ]) for 0..2;
    
  3. or download this
    $group_size = 3;
    push(@groups, [ substr($line, $_-1) =~ /(.{$group_size})/g ])
       for 1..$group_size;
    
  4. or download this
    $line = 'atccatccctttaat';
    
    ...
                'taa'
              ]
            ];