blib/htdocs/tutorial/bin/random_dna.pl untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4  
5 my @bases = qw(g a t c);
6  
7 my $length = shift || 50000;
8 my @nucleotides = map {$bases[rand @bases]} (1..$length);
9 my $nucleotides = join '',@nucleotides;
10 $nucleotides =~ s/(.{1,60})/$1\n/g;
11  
12 print ">ctgA\n$nucleotides";
13