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


in reply to Print hex data in ASCII format as is

With the h or H templates.