Parse binary log events returned by input callback. This sub implements a standard interface that the *Parser.pm modules share. Each such module has a sub named “parse_event” that is expected to return one event each time it’s called. Events are received from an input callback, $args{next_event}. The events are chunks of text that this sub parses into a hashref representing the attributes and values of the event.
Parameters
Required Arguments
next_event | Coderef that returns the text of the next event from the input |
tell | Coderef that tells the file position being read in the input |
Optional Arguments
oktorun | Coderef to tell caller that there are no more events |
Returns
Hashref representing one event and its attributes and values