in reply to SNTP pack and unpack

There is too much stuff in code tags thats not directly related to pack/unpack, please clean it, chances of getting an answer increase if format is like this, and the data is fixed/repeatable and you know what to expect
use Data::Dump qw/ dd /; my $wanted => { hi => 4, bye => 2 }; my $raw = "bits"; dd( $wanted , RawToRecord( $raw ) ); sub RawToRecord { my( $raw ) = @_; %record ... unpack ... pack ...; return \%record; }

That way you can only focus on pack/unpack with known data, only focus on the template, once you get that working, work on the rest of the program

Replies are listed 'Best First'.
Re^2: SNTP pack and unpack
by thanos1983 (Parson) on Mar 07, 2015 at 01:47 UTC

    Hello Anonymous Monk,

    Thank you for your time and effort. Well I am afraid that it is not so clear to me your solution I will try to work on it though. Again I appreciate your time.

    BR

    Seeking for Perl wisdom...on the process of learning...not there...yet!
      its not a solution, its an outline on how to ask the question so it doesn't depend on things like an SNTP server... you did do some cleaning of your code and provided sample of error output, but now what the correct output is supposed to be