whereiskurt has asked for the wisdom of the Perl Monks concerning the following question:
This must happen to other people ... maybe I'm just showing my noobness. :-)
... my $ether_data = NetPacket::Ethernet::strip($packet); my $ip = NetPacket::IP->decode($ether_data); my $tcp = NetPacket::TCP->decode($ip->{'data'}); print Dumper($ip); print Dumper($tcp);
As I run this little script in bash, inevitably the characters set starts to display real bizzare and nothing looks normal. [Kind of reminds of a DOS ANSI bomb.] Eventually I end up typing 'reset', which looks more like a bunch of pipes and bars. I'm not sure exactly what's happening, but I believe it has something to do with "binary" data.
Any advice on how to prevent/mitigate this would be appreciated. I hope this is considered on topic.
Kurt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reset and Data::Dumper
by ikegami (Patriarch) on Mar 14, 2008 at 05:21 UTC | |
by whereiskurt (Friar) on Mar 14, 2008 at 05:41 UTC |