Help for this page

Select Code to Download


  1. or download this
    # use strict;
    # use warnings;
    
  2. or download this
    open(READ,"<dna.txt");
    @e = <READ>;
    $a = join( " ", @e );
    
  3. or download this
    open(READ,"<dna.txt");
    my @e = <READ>;
    my $a = join( " ", @e );
    
  4. or download this
    for ( $i = 0 ; $i < length($a) ; $i++ ) {
        $d = substr( $a, $i, 6 );
    ...
        }
    }
    print $a ;
    
  5. or download this
    my $printed = 0;
    
    ...
        }
    }
    print substr( $a, $printed ), "\n";
    
  6. or download this
    print "AND THE POSITION IN THE STRING IS:", print join( ',', ( @c, "\n
    +" ) ), "\n\n";
    
  7. or download this
    print "AND THE POSITIONS IN THE STRING ARE:", join( ',', @c ), "\n\n";