2 # Author: Jason Stajich <jason.stajich@duke.edu>
3 # Convert a PAUP tree block to Phylip format
9 last if( /Translate/ );
13 my ($num, $taxon) = (/\s+(\d+)\s([A-Za-z\.\_]+),/);
14 $data[$num] = substr($taxon,0,10);
17 next unless (s/^\s*tree (\S+) = \[\S+\] //i);
19 for( my $i=scalar @data; $i > 0; $i-- ) {
20 my $taxon = $data[$i];
21 $tree =~ s/$i/$taxon/;