Skip to content

Instantly share code, notes, and snippets.

@yojiro
Created November 26, 2012 16:00
Show Gist options
  • Select an option

  • Save yojiro/4148949 to your computer and use it in GitHub Desktop.

Select an option

Save yojiro/4148949 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
while (<>) {
chomp;
my(@hex) = split(/\s+/, $_);
print pack("H2" x @hex, @hex);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment