Skip to content

Instantly share code, notes, and snippets.

@preaction
Created October 1, 2014 22:04
Show Gist options
  • Save preaction/6cb8f366df8c93c51eb0 to your computer and use it in GitHub Desktop.
Save preaction/6cb8f366df8c93c51eb0 to your computer and use it in GitHub Desktop.
» perl -e'use strict "vars"; BEGIN { printf "\%8d -> %60s", $^H, unpack( "b*", $^H ) }'
1408 -> 10001100001011000000110000011100
» perl -e'use strict "subs"; BEGIN { printf "\%8d -> %60s", $^H, unpack( "b*", $^H ) }'
832 -> 000111001100110001001100
» perl -e'use strict "refs"; BEGIN { printf "\%8d -> %60s", $^H, unpack( "b*", $^H ) }'
290 -> 010011001001110000001100
» perl -e'use strict; BEGIN { printf "\%8d -> %60s", $^H, unpack( "b*", $^H ) }'
2018 -> 01001100000011001000110000011100
» perl -e'use strict "refs", "vars", "subs"; BEGIN { printf "\%8d -> %60s", $^H, unpack( "b*", $^H ) }'
2018 -> 01001100000011001000110000011100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment