Help for this page

Select Code to Download


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