http://www.perlmonks.org?node_id=1001946


in reply to Why this code not working with pcap files?

It worked on my example file. Maybe your pcap is so big, that it takes time to proceed and you only think it was frozen? Try
print "Processing line $." if $. % 10 == 0;
right after while (<TD>) { line to see if it does anything.