Vnlog::Parser(3pm) vnlog Vnlog::Parser(3pm)

Vnlog::Parser - Simple library to parse vnlog data

 use Vnlog::Parser;
 my $parser = Vnlog::Parser->new();
 while (<DATA>)
 {
     if( !$parser->parse($_) )
     {
         die "Error parsing vnlog line '$_': " . $parser->error();
     }
     my $d = $parser->getValuesHash();
     next unless %$d;
     say "$d->{time}: $d->{height}";
 }

This is a simple perl script to parse vnlog input and make the incoming key/values available. The example above is representative of normal use. API functions are

<https://github.com/dkogan/vnlog>

Dima Kogan, "<dima@secretsauce.net>"

Copyright 2016 California Institute of Technology.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

2024-04-01