Posted on 2009-06-22 13:47:00-07 by frank85 in response to 11026
Re: How is it possible to change the outputformat with the translate function
Thanks for the answer. But unfortunatly this function translate somehow.
It shouldn't be translate the values, which are in Hex-String. I want only translate strings or numbers and the hexadecimal numbers should be in their hexadecimal format.
Hex-STRING: 0A 00 3F FE <- this values shouldn't be reformated - This in output from snmpget STRING: <NL>6-- <- This line with some special characters should be format.
The hex-string show me for my first line in your example as output: 0x30783061303033666665
And for the second line the correct Hex-STRING.

Do you know the reason for it?
Thank you in advance for your efforts.
Direct Responses: 11028 | 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.