Subject: | Need more code in example |
Not exactly a bug, but please add the iterator to your example (for
copy/pasta goodness):
use Data::Dumper;
use IO::Scalar;
use Sphinx::Log::Parser;
# 0.9.9
my $logstr = '[Fri Oct 1 03:18:46.342 2010] 0.014 sec [ext/2/rel 55
(0,700)] [topic;topicdelta;] [ios=0 kb=0.0 ioms=0.0] @title lucky';
my $io = new IO::Scalar \$logstr;
my $parser = Sphinx::Log::Parser->new( $io );
while (my $res = $parser->next()) {
print Dumper($res);
}