Help for this page
my $data = "\000\012\000\144\023\304\003pbx\007example\003com\000:3600 +"; ... my ($pri,$weight,$port,$target,$ttl) = unpack "S>3Z*A*", $data; $target = join '.', unpack "(C/A)*", $target; $ttl=~s/\A://;