in reply to concatenate a non-printable character onto an ascii string and inspect the content
use Devel::Peek; Dump(pack('a*','123456') . pack('a', 0x1c)); Dump(pack('a*','123456') . pack('a', "\x1c")); [download]