Posted on 2009-06-22 12:35:04-07 by dtown in response to 11022
Re: How is it possible to change the outputformat with the translate function
Translation is on by default, so your call to translate(-octetstring => 0x1) is really a no-op. The translation of OCTET STRINGs is done by a pattern match. See the "translate() - enable or disable the translation mode for the object" section of the documentation which discusses what triggers translation for an OCTET STRING. The string you are receiving back might be all printable according to the module and no translation is taking place. If that is the case, you would need to turn translation off, and then use unpack() to format your string. See a related "bug" report at http://rt.cpan.org/Public/Bug/Display.html?id=27819.
Direct Responses: 11025 | 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.