Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Binary-to-text Converter

DZone's Guide to

Binary-to-text Converter

·
Free Resource
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:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}