in reply to Re: Send a UDP Packet with bunch of numbers in PERL?
in thread Send a UDP Packet with bunch of numbers in PERL?
1) I can't just send the data in string and cannot assign it the $DATA_to_be_SENT = $_ ; as $_ returns a string which in my case would be "-2.3,-4.5,901,223,34.098"
2) My Receiving end is a hardware which can only work on Floating numbers and all these five numbers should be sent within ONE Packet in the same order.
3) I noticed that I can do something like this for hexadecimal numbers
If I try to use "\d-2.3,\d-4.5,\d901,\d223,\d34.098" and observe the network in wireshark , I am seeing the letter d along with the values. So I believe you got a better insight of what i am trying to ask.$socket->send("\x-2.3,\x-4.5,\x901,\x223,\x34.098");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Send a UDP Packet with bunch of numbers in PERL?
by pryrt (Abbot) on Aug 18, 2016 at 19:41 UTC | |
by AryanSinha (Initiate) on Aug 18, 2016 at 19:55 UTC | |
by AryanSinha (Initiate) on Aug 18, 2016 at 20:24 UTC | |
by pryrt (Abbot) on Aug 19, 2016 at 00:55 UTC |