Posted on 2009-06-22 14:59:42-07 by dtown in response to 11027
Re: How is it possible to change the outputformat with the translate function
With translation disabled, you have to selectively translate the values yourself. If you "know" that the response to a particular OID is printable, you do not call hex_format(), and if it requires conversion, then you call it. It does not look like you have disabled translation because the hexadecimal value 30783061303033666665 in ASCII is "0x0a003ffe". So the response was translated, first by the module to ASCII "0x0a003ffe" and then by the hex_format() function to "0x30783061303033666665".
Direct Responses: 11033 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.