Subject: | to_newick should not use caching |
Date: | Fri, 8 Sep 2006 20:16:17 -0400 |
To: | bug-bio-phylo [...] rt.cpan.org |
From: | Allen Smith <easmith [...] beatrice.rutgers.edu> |
$Id: Tree.pm,v 1.23 2006/05/19 02:08:54 rvosa Exp $
The command to_newick uses caching:
sub to_newick {
my $self = shift;
my @tmp = $self->_check_cache;
return $tmp[1] if $tmp[0];
my $newick = unparse( -format => 'newick', -phylo => $self );
$self->_store_cache($newick);
return $newick;
}
However, $node->set_name does not flush the cache.
-Allen
--
Allen Smith http://cesario.rutgers.edu/easmith/
February 1, 2003 Space Shuttle Columbia
Ad Astra Per Aspera To The Stars Through Asperity