From: Mischa POSLAWSKY Date: Wed, 19 Aug 2015 07:58:09 +0000 (+0200) Subject: perl code snippet for additional programming symbols X-Git-Tag: v2.0~69 X-Git-Url: http://git.shiar.net/unicode-sampler.git/commitdiff_plain/75b7326c95fc94d3efe9c09d3c729a1231b23a38 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. --- 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), ⎧⎡⎛┌─────┐⎞⎤⎫