raj_paps has asked for the wisdom of the Perl Monks concerning the following question:
This is not efficient. I am sure there must be elegant way to do this. some examples please..?my $src_addr = substr($pkt, 26, 1); my $src_addr1 = ord $src_addr; $src_addr = substr($pkt, 27, 1); my $src_addr2 = ord $src_addr; $src_addr = substr($pkt, 28, 1); my $src_addr3 = ord $src_addr; $src_addr = substr($pkt, 29, 1); my $src_addr4 = ord $src_addr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Pcap print ip address
by shmem (Chancellor) on May 29, 2013 at 11:23 UTC | |
|
Re: Net::Pcap print ip address
by VinsWorldcom (Prior) on May 29, 2013 at 11:37 UTC | |
|
Re: Net::Pcap print ip address
by t_rex_joe (Sexton) on May 29, 2013 at 13:58 UTC |