Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Binary buffer - substrby highland7 (Novice) |
on Jan 13, 2013 at 22:29 UTC ( [id://1013138]=perlquestion: print w/replies, xml ) | Need Help?? |
highland7 has asked for the wisdom of the Perl Monks concerning the following question:
Hello PerlMonks I read/create IP packets using Net::Frame::Layer. I already have raw packet dump in $packet_dump. I need to search for 4 consecutive bytes with values 0x16 0x3 0x1 0x1 and make a new binary buffer which will be send. That new binary buffer will start from that 4 bytes (to the end of $packet_dump). How can i do it ? I have tried it with qq, pack, unpack but without suceess :( Thanks,
Back to
Seekers of Perl Wisdom
|
|