Skip to content

Instantly share code, notes, and snippets.

@tom-lpsd
Created September 7, 2009 10:15
Show Gist options
  • Save tom-lpsd/182265 to your computer and use it in GitHub Desktop.
Save tom-lpsd/182265 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Encode qw(find_encoding);
my $foo = 'a' x 100000;
for (1..10000) {
$foo .= 'a' x 10;
}
$foo = undef;
find_encoding('utf8')->decode($foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment