in reply to Dec to Hex (NON-ASCII mode )

The following are equivalent: So, are you trying to get the binary representation of 100?
unpack 'B*', pack 'c', 100; 01100100

Replies are listed 'Best First'.
Re^2: Dec to Hex (NON-ASCII mode )
by AnomalousMonk (Archbishop) on Dec 09, 2010 at 09:22 UTC

    Also:

    >perl -wMstrict -le "print qq{'\x64'}, pack 'C', 100; " 'd'd