Created
February 5, 2015 13:26
-
-
Save sammachin/2e824dfa82526132e58e to your computer and use it in GitHub Desktop.
convert BE/LE binary now with MOAR perl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my($input) = 0b01000000010000100000111100000000; | |
my $v1 = pack("I>", $input); | |
my $v2 = unpack("I<", $v1); | |
print "$v2" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment