Help for this page

Select Code to Download


  1. or download this
    sub count {
        my( $length, $alphabet )= @_;
        my @alphabet= split //, $alphabet;
    ...
    
    count( @ARGV );
    # count( $_, "ACGT" )   for  8..10;
    
  2. or download this
    sub count {
        my( $alphabet, $seq )= @_;
        my $base= length($alphabet);
    ...
    do {
        print $seq, $/;
    } while(  $seq= count( $alphabet, $seq )  );