cope with jesse's logger, which lacks --id=VALUE
[hippotat] / w3mstracetodump
CommitLineData
75fce475
IJ
1#!/usr/bin/perl -n
2
00192d6a
IJ
3# strace -s70000 -ot w3m ./form.html
4
31bad769
IJ
5next unless
6 (m/^connect\((\d+),.*AF_INET/ and $fd = $1) ..
7 m/^close\($fd\)/;
8
9next unless s{^write\($fd, "}{};
75fce475
IJ
10s{", \d+\)\s+= \d+\n}{};
11s{\\r}{\r}g;
12s{\\n}{\n}g;
13s{\\(.)}{$1}g;
14print or die $!;
15