Kasago::Hit - A search hit
# search for a token, merging lines foreach my $hit ($kasago->search_merged($search)) { print $hit->source . "/" . $hit->file . "@" . $hit->row . ": " . $hit->line . "\n"; foreach my $token (@{ $hit->tokens }) { print " @" . $token->col . ": " . $token->value . "\n"; } } # searh for tokens, merging lines foreach my $hit ($kasago->search_more_merged($search)) { print $hit->source . "/" . $hit->file . "@" . $hit->row . ": " . $hit->line . "\n"; foreach my $token (@{ $hit->tokens }) { print " @" . $token->col . ": " . $token->value . "\n"; } }
Kasago::Hit represents a hit from the index, where tokens on the same line have been merged into the same object.
Leon Brocard <acme@astray.com>.
Copyright (C) 2005, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install Kasago, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kasago
CPAN shell
perl -MCPAN -e shell install Kasago
For more information on module installation, please visit the detailed CPAN module installation guide.