http://www.perlmonks.org?node_id=1012034


in reply to Re: I need Hex conversion, not!
in thread I need Hex conversion, not!

I think there's a misunderstanding here. When you write the number 0xFF or 255 (which is really the same), you probably want the byte with the number 255 to be written. If that's the case, you need chr or pack (see perlpacktut), not a string representation.