Skip to content

Instantly share code, notes, and snippets.

@archaelus
Created November 14, 2011 22:13
Show Gist options
  • Save archaelus/1365367 to your computer and use it in GitHub Desktop.
Save archaelus/1365367 to your computer and use it in GitHub Desktop.
So there.
A = <<131,103,100,0,55,112,108,117,115,95,112,114,101,115,
101,110,99,101,64,109,111,98,97,103,101,45,112,114,111,
100,45,112,114,101,115,101,110,99,101,49,48,49,46,98,
101,46,115,97,99,46,110,103,109,111,99,111,46,99,111,
109,0,0,92,13,0,0,20,186,3>>,
B = <<131,103,100,0,55,112,108,117,115,95,112,114,101,115,
101,110,99,101,64,109,111,98,97,103,101,45,112,114,111,
100,45,112,114,101,115,101,110,99,101,49,48,49,46,98,
101,46,115,97,99,46,110,103,109,111,99,111,46,99,111,
109,0,0,92,13,0,0,20,186,0>>,
C = erlang:binary_to_term(A),
D = erlang:binary_to_term(B),
{C, D, C =:= D,
pid_to_list(C) =:= pid_to_list(D)}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment