Skip Menu |

This queue is for tickets about the Tree-Suffix CPAN distribution.

Report information
The Basics
Id: 17953
Status: resolved
Priority: 0/
Queue: Tree-Suffix

People
Owner: Nobody in particular
Requestors: ewijaya [...] singnet.com.sg
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: gray [...] cpan.org
Subject: Find method doesn't exist in Tree::Suffix ?
Date: Fri, 03 Mar 2006 12:07:15 +0800
To: bug-tree-suffix [...] rt.cpan.org
From: "Edward WIJAYA" <ewijaya [...] singnet.com.sg>
Hi, Again thanks so much for providing this wonderful Perl interface to Generalized suffix tree. However one of this critical method (find) doesn't seem to work. The message I got is this: Can't locate object method "find" via package "Tree::Suffix" at test_suffix.pl line 27. Here is the script of mine: __BEGIN__ use strict; use Data::Dumper; use Carp; use Tree::Suffix; my @strings = qw ( TTTTGGGGGGGGGGGGGGGGG ATCGGGGGACCGTTCTCTCCCC ); my $string = 'ATCG'; my $tree = Tree::Suffix->new(@strings); my $num = $tree->strings; my $nodes = $tree->nodes; print "NB OF STRINGS: $num , NO OF NODES: $nodes\n"; my @lcs = $tree->lcs; print Dumper \@lcs ; # All of above works except this: my $bool = $tree->find($string); print "$bool\n"; __END__ Hope to hear from you again. -- Regards, Edward WIJAYA SINGAPORE
From: gray
On Fri Mar 03 03:47:12 2006, ewijaya@singnet.com.sg wrote: Show quoted text
> The message I got is this: > Can't locate object method "find" via package "Tree::Suffix" at > test_suffix.pl line 27.
It's important to know what version you are using. perl -MTree::Suffix -e 'print "$Tree::Suffix::VERSION\n"' I just released the latest version (0.05) today, so it's possible that you may have seen the documentation for that version online, but your cpan mirror might not have been updated with this version yet.
From: gray [...] cpan.org
On Fri Mar 03 03:47:12 2006, ewijaya@singnet.com.sg wrote: Show quoted text
> The message I got is this: > Can't locate object method "find" via package "Tree::Suffix" at > test_suffix.pl line 27.
It's important to know what version you are using. perl -MTree::Suffix -e 'print "$Tree::Suffix::VERSION\n"' I just released the latest version (0.05) today, so it's possible that you may have seen the documentation for that version online, but your cpan mirror might not have been updated with this version yet.