The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lingua::Sinica::PerlYuYan - Use Chinese to write Perl

SYNOPSIS

    #!/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

DESCRIPTION

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.

CAVEATS

Currently Big-5 only. UTF-8 and GB2312 support is trivial, and will be available upon request.

SEE ALSO

Filter::Simple, Lingua::Romana::Perligata.

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

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:

Around line 17:

Non-ASCII character seen before =encoding in '®J©Ô¦«´µªâ¿zªk'. Assuming CP1252