(Originally this was on one line, but it looks terrible on the blog that way... I've already spent, easily, 10 times the amount of time trying to format the code than I did writing the code)
use strict; use warnings; my $the_truth = "0a796177796e6120656d2065766f6c20756f7920747562202c6472656e2061206d49"; my $tell = sub { return join("", map { chr(hex($_)) } grep { $_ } reverse(split(/(.{2})/, $_[0]))) }; print $tell->($the_truth);
No comments:
Post a Comment