< Previous | [Index] | slide #11 out of 13 slides | Next >



The functions from the .h file need to added manually to the @EXPORT array:

@EXPORT = qw(ST_CreateTree ST_PrintTree ST_FindSubstring ST_DeleteTree
		create_tree print_tree find_substring delete_tree);

This addition (for example) was also added manually:

sub create_tree($) {
	return ST_CreateTree($_[0], length($_[0]));
The interface created by SWIG works, but is not very perlish. This is where a little manual labour is required (or at least desirable), to wrap those not so pretty functions with your own, more perlish, functions.

For those interested, the complete SuffixTree tarball can be found at it's CPAN page ([6]).

< Previous (10) | [Index] | (12/13) Next >

Offer Kaye. YAPC::Israel::2003. Slides automatically generated by a Perl script. Last update on Sun Apr 6 09:28:17 IDT 2003