X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/652fa60a059b983b901b344ea400230206bff8ff..a0ba9298856b2426c5c66b6d2f2b284d98cee594:/charset.plp diff --git a/charset.plp b/charset.plp index fd8d2ad..c9ef2b6 100644 --- a/charset.plp +++ b/charset.plp @@ -30,7 +30,8 @@ use Encode qw(decode); # generate character table(s) # (~16x faster than decoding in loop; # substr strings is twice as fast as splitting to an array) -my @tables = map { decode($_, pack 'C*', 0..255) } 'iso-8859-1', 'cp437'; +my @request = ('iso-8859-1', 'cp437'); +my @tables = map { decode($_, pack 'C*', 0..255) } @request; my $NOCHAR = chr 0xFFFD; for my $cp437 (grep {$request[$_] eq 'cp437'} 0 .. $#request) { @@ -49,19 +50,23 @@ sub quote { return $_; } +print "