http://qs1969.pair.com?node_id=977054

yildiza has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I want to read hex data from a binary file and print it on the screen as is. i.e., if data -> ffa3 After printing this on the screen, it should show ffa3 NOT the ASCII equivalents. How can I achieve that using pack or unpack? Thank you.

Replies are listed 'Best First'.
Re: Print hex data in ASCII format as is
by moritz (Cardinal) on Jun 19, 2012 at 12:29 UTC
      Thank you for your answer. It worked. unpack("H*", $data)