Data::ParseBinary::Data::Cap - Parsing "tcpdump capture file"
use Data::ParseBinary::Data::Cap qw{$data_cap_parser}; my $data = $data_cap_parser->parse(CreateStreamReader(File => $fh));
Parsing "tcpdump capture file", whatever it is. Please note that this parser have a lot of white space. (paddings) So when I rebuild the file, the padded area is zeroed, and the re-created file does not match the original file.
I don't know if the recreated file is valid.
This is a part of the Data::ParseBinary package, and is just one ready-made parser. please go to the main page for additional usage info.
To install Data::ParseBinary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::ParseBinary
CPAN shell
perl -MCPAN -e shell install Data::ParseBinary
For more information on module installation, please visit the detailed CPAN module installation guide.