Skip to content

Instantly share code, notes, and snippets.

@autarch
Created February 2, 2014 20:36
Show Gist options
  • Save autarch/8774542 to your computer and use it in GitHub Desktop.
Save autarch/8774542 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use v5.16;
use Test::More;
my @ints = ( 1 .. 2**20 );
my @packed = map { pack 'N', $_ } @ints;
is_deeply(
\@ints,
[ map { unpack 'N', $_ } sort @packed ],
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment