Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Show-ASCII-table/Perl/show-ascii-table.pl
Normal file
20
Task/Show-ASCII-table/Perl/show-ascii-table.pl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
use charnames ':full';
|
||||
binmode STDOUT, ':utf8';
|
||||
|
||||
sub glyph {
|
||||
my($n) = @_;
|
||||
if ($n < 33) { chr 0x2400 + $n } # display symbol names for invisible glyphs
|
||||
elsif ($n==124) { '<nowiki>|</nowiki>' }
|
||||
elsif ($n==127) { 'DEL' }
|
||||
else { chr $n }
|
||||
}
|
||||
|
||||
print qq[{|class="wikitable" style="text-align:center;background-color:hsl(39, 90%, 95%)"\n];
|
||||
|
||||
for (0..127) {
|
||||
print qq[|-\n] unless $_ % 16;;
|
||||
printf qq[|%d<br>0x%02X<br><big><big title="%s">%s</big></big>\n],
|
||||
$_, $_, charnames::viacode($_), glyph($_);
|
||||
}
|
||||
}
|
||||
print qq[|}\n];
|
||||
Loading…
Add table
Add a link
Reference in a new issue