☺唐鳳☻ > Lingua-Sinica-PerlYuYan-0.03 > Lingua::Sinica::PerlYuYan

Download:
Lingua-Sinica-PerlYuYan-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.03   Source  

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