Over a million developers have joined DZone.

Binary-to-text Converter

·
Converts all 8-bit binary numbers in the standard input into text, though there's probably a better way to do this

#!/usr/bin/perl -wn
use strict;
s/\s//g;
print chr oct "0b$1" while /([01]{8})/g;
print "\n";
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}