#!/usr/bin/perl #unicode identifiers example. You will need a Unicode editor to properly display/edit the variable names. #If viewing source in the browser window, make sure to select "Uniode" from the "View/Character Encoding" (netscape) menu, #or the "View/Encoding" (MSIE) menu. # - U+03A9; GREEK CAPITAL LETTER OMEGA # - U+30BB; KATAKANA LETTER SE # - U+2642; MALE SIGN # - U+2640; FEMALE SIGN #the utf8 pragma IS required. use utf8; #This identifier is legal $セΩ="hello world"; #KATAKANA LETTER SE followed by GREEK CAPITAL LETTER OMEGA #This identifier would be illegal: #$♀♂="Brazil won the World Cup"; #Send the HTTP header specifying utf-8 encoding. print "Content-Type: text/html\; charset=utf-8\n\n"; print< Perl and Unicode: Unicode characters in identifiers

Unicode characters in identifiers

My Unicoded identifier \$セΩ holds the value: $セΩ

However an identifier with Unicode characters not in a letter or number "General Category" will not work. \$♀♂ is an illegal identifier. END exit;