Skip to content

Instantly share code, notes, and snippets.

@alecchen
Created April 7, 2011 16:00
Show Gist options
  • Save alecchen/908070 to your computer and use it in GitHub Desktop.
Save alecchen/908070 to your computer and use it in GitHub Desktop.
alec-chende-macbook-3:~ alec$ perl -e '$v = oct("0b" . $ARGV[0]); printf "%d, 0x%X\n", $v, $v;' 11111
31, 0x1F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment