in reply to SNTP pack and unpack
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 | |
by Anonymous Monk on Mar 07, 2015 at 04:08 UTC |