in reply to Re: Re: Re: SNMP String format
in thread SNMP String format

then this:

($type eq 'string') && do { $value = encode_string($value); push @enoid, [$oid,$value]; next; };

should probably be this:

($type eq 'string') && do { $value = encode_string( pack "C*" map {hex} split /\s/, $value ); push @enoid, [$oid,$value]; next; };

because you likely want to encode "\xAA\xBB\xCC\xDD" and not "AA BB CC DD".