sub length {
    my $self = shift;
    return length($self->seq);
}

Example 1: The length method.

Back to Article
Copyright © 1999, Dr. Dobb's Journal