in reply to Send a UDP Packet with bunch of numbers in PERL?
The immediate issue I see is that $DATA_to_be_SENT is not initialized.
Why can't you simply set $DATA_to_be_SENT=$_ ?
Your problem description is not clear enough. Does "packet of Numeric values" mean binary, fixed size, decimal, or comma separated ? IS the packet fixed size ?
You may need to do a "chomp" after you read the data, unless you want/need to send the "\n" to the remote end.
Always "use strict;", particularly if you are a beginner.
"Software interprets lawyers as damage, and routes around them" - Larry Wall
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Send a UDP Packet with bunch of numbers in PERL?
by AryanSinha (Initiate) on Aug 18, 2016 at 19:14 UTC | |
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 |