This is our old Q&A Site. Please post any new questions and answers at

With tshark I can output CSV-like (well, tab-separated values) data about capture packages using -T fields and -e. But I'd like to access these fields directly with Perl, e.g. as a hash or in an object-oriented manner with getters.

Does something like this exist? I've looked on CPAN (via and with Duckduckgo using keywords like perl wireshark as well as perl epan.

asked 30 Mar '17, 08:53

XTaran's gravatar image

accept rate: 0%

There is/was a library called Net::Sharktools. However I'm not sure if it works with Wireshark 2.X.

Another way to go is to use the JSON output of tshark and the JSON perl module.

permanent link

answered 16 Apr '17, 13:22

Uli's gravatar image

accept rate: 29%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Mar '17, 08:53

question was seen: 1,340 times

last updated: 16 Apr '17, 13:22

p​o​w​e​r​e​d by O​S​Q​A