X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/652fa60a059b983b901b344ea400230206bff8ff..38dcfca045c69d0e303e8e5a4ca4915202e19970:/charset.plp diff --git a/charset.plp b/charset.plp index fd8d2ad..c83508b 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 "