use strict; use warnings; my $byte = 'X'; my $binary = unpack('b*', $byte); print $binary; # prints 00011010 [download]
In reply to Re: Reading Binary by oxone in thread Reading Binary by BoulderBuff64