summaryrefslogtreecommitdiff
path: root/hex2bin (plain)
blob: a46ba8d211aeac53b9f6b119e09cfd2dba0816d4
1
2
3
4
5
6
#!/usr/bin/perl
use strict;
use warnings;
local $/;
my $hex = (@ARGV ? join("",@ARGV) : <STDIN>);
print pack("C",hex($_)) for ($hex =~ m/../g);