Lingua::Sinica::PerlYuYan - Use Chinese to write Perl
#!/usr/local/bin/perl # The Sieve of Eratosthenes - ®J©Ô¦«´µªâ¿zªk use Lingua::Sinica::PerlYuYan; ¥ÎÄw¤¼¥ÎÄY ¤«²U¤¼µLÃª¡C ¦L¤ê³Ì°ª¨o ¤S¹D¼ÆµM«v¡C ºI°_§^¯Â· ½á¤p¤J¤j¦X¡C ²ß¤©§^°}¦a ¨Ã¤G¦Ü¯Â·¡C ·í°_¬q½á¨ú ¥[°}¦a¦X©l¡C °}¦a½á¿z©l Ã´Ã´¦¹Âø¬q¡C ²×°}¦a¤¼¦L ¥¿¹D¦¸¼Ð«v¡C ¿éªÅ±µ¬qÂI ¦C²×µù®õ¨Ó¡C
The Lingua::Sinica::PerlYuYan makes it makes it possible to write Perl programs in Chinese. (If you have to ask "Why?", please refer to Lingua::Romana::Perligata for related information.)
This module uses the single-character property of Chinese to disambiguate between keywords, thus whitespaces could be omitted this way, much like in real Chinese writings.
The vocabulary is of the WenYanWen (¤å¨¥¤å, literary text) mode, not much used in modern Chinese, which prefers the BaiHuaWen (¥Õ¸Ü¤å, spoken text) mode with multiple-syllable words.
You could use
Lingua::Sinica::PerlYuYan::translate() (or simply as
Ä¶()) to translate a string containing English programs into Chinese.
Currently Big-5 only. UTF-8 and GB2312 support is trivial, and will be available upon request.
Autrijus Tang <email@example.com>
Copyright 2001, 2002 by Autrijus Tang <firstname.lastname@example.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 17:
Non-ASCII character seen before =encoding in '®J©Ô¦«´µªâ¿zªk'. Assuming ISO8859-1