- or download this
my $n = 0 ;
my $s = $p ;
...
if ($l = unpack("\@$p C", $response)) { $n++ ; } ;
$p += $l + 1 ;
} while ($l) ;
- or download this
my ( ...., @labels, undef, $type, $class, ...) = unpack(".... (C/a*)
+$n C n n ....") ;
- or download this
($name, $p) = extract_name($response, $p) ;
....
...
....
return ($extracted, $p) ;
} ;
- or download this
sub extract_name {
my ($response, $p) = @_ ;
...
$_[1] = $p ; # $_[1] is implicitly a reference to the 2nd
+actual argument
return $extracted ;
} ;