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.
Lingua::Sinica::PerlYuYan::translate()
Ķ()
Currently Big-5 only. UTF-8 and GB2312 support is trivial, and will be available upon request.
Filter::Simple, Lingua::Romana::Perligata.
Autrijus Tang <autrijus@autrijus.org>
Copyright 2001, 2002 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '®J©Ô¦«´µªâ¿zªk'. Assuming CP1252
To install Lingua::Sinica::PerlYuYan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::Sinica::PerlYuYan
CPAN shell
perl -MCPAN -e shell install Lingua::Sinica::PerlYuYan
For more information on module installation, please visit the detailed CPAN module installation guide.