Make a Perl program to calculate the lengths of DNA and protein sequences