# Create a buffer containing the binary representation # of the number we want converted my $packed = pack("n", 2100); # unpack to binary my $bin = unpack("B*", $packed); print "$bin\n"; #### --- print map { my ($m)=1<