Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (35 sloc) 1.517 kb
This version uses a wrap file, suffix_tree_wrap.c, that was generated
for usage under Linux (we tested it only on Mandrake 9).
If you are using some other platform, you might want to generate your
own wrap file.
You need to have SWIG installed (get it from:
Now do ONE of the following (1 or 2):
To generate a wrap file use the following commands from the directory
where the suffix tree source files (suffix_tree.h suffix_tree.c) are:
cp bak.SuffixTree
swig -perl -module SuffixTree suffix_tree.h
mv bak.SuffixTree
Now you need to do something that SWIG forgot, and that is to add the
following line somewhere in the beginning of the newly created wrap
file, suffix_tree_wrap.c
#include "suffix_tree.h"
Run the following script:
We will do this someday...
To install (once your wrap file is compatible with your system), read
the instructions in the INSTALL file.
perldoc SuffixTree
Copyright (c) 2002, 2003 Shlomo Yona. All rights reserved.
This library is free software.
You can redistribute it and/or modify it under the same terms as Perl itself.
Jump to Line
Something went wrong with that request. Please try again.