From: Mischa POSLAWSKY Date: Mon, 27 Mar 2017 22:18:20 +0000 (+0200) Subject: charset: ignore unknown input, highlight warning X-Git-Tag: v1.10~292 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/e56f4c583ad8d217c86c54cc86352bae9ab208b2 charset: ignore unknown input, highlight warning --- diff --git a/charset.plp b/charset.plp index b0d3b83..bd20ca9 100644 --- a/charset.plp +++ b/charset.plp @@ -1,4 +1,5 @@ <(common.inc.plp)><: +use 5.014; Html({ title => 'charset cheat sheet', @@ -89,9 +90,9 @@ my @request = map { } } else { - print "

Encoding $input unknown

\n"; + say "

Encoding $input unknown

"; } - \%row; + $row{set} ? \%row : (); } else { ();