From 75b7326c95fc94d3efe9c09d3c729a1231b23a38 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 19 Aug 2015 09:58:09 +0200 Subject: [PATCH] perl code snippet for additional programming symbols Golf entry by teebee for character referencing which includes a good amount of \W ASCII, including the common dollar sign, slashes, and quotes. --- unicode.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unicode.txt b/unicode.txt index 4e4a360..88dd0c1 100644 --- a/unicode.txt +++ b/unicode.txt @@ -11,6 +11,8 @@ Code: Hash[ :nbsp => 0O2_40 ].each {|name, cp| puts "#{name} is '#{cp.chr}'" } + perl -pe's/\w/$^=~$&>chop($^=$&.$^)?"@-":$&/ge' + Mathematics and sciences: ∮ E⋅da = Q, n → ∞, ∑ f(i) = ∏ g(i), ⎧⎡⎛┌─────┐⎞⎤⎫ -- 2.30.0