Changeset 2161 for libswish3/trunk/bindings/perl/lib
- Timestamp:
- 09/20/08 01:05:54 (4 months ago)
- Files:
-
- libswish3/trunk/bindings/perl/lib/SWISH/3.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/bindings/perl/lib/SWISH/3.pm
r2151 r2161 19 19 use constant SWISH_DOC_FIELDS => 20 20 qw( mtime size encoding mime uri nwords ext parser ); 21 use constant SWISH_ WORD_FIELDS =>22 qw( word position metaname context start_offset end_offset);21 use constant SWISH_TOKEN_FIELDS => 22 qw( pos meta value context start_byte len ); 23 23 24 24 # load the XS at runtime, since we need $VERSION … … 138 138 while ( my $swishword = $wordlist->next ) { 139 139 print '-' x 50, "\n"; 140 for my $w (SWISH_ WORD_FIELDS) {140 for my $w (SWISH_TOKEN_FIELDS) { 141 141 printf( "%15s: %s\n", $w, $swishword->$w ); 142 142 }
