Rahul, Using your input file and your code, BioPerl and PHYLIP run correctly. Despite your "following the documentation perfectly", I believe you may have missed this line: print $matrix->print_matrix; Dave