PERLTW(1) Perl Programmers Reference Guide PERLTW(1)
NAME
perltw - ???? Perl ??
DESCRIPTION
???? Perl ???!
? 5.8.0 ???, Perl ?????? Unicode (???) ??, ????????????
???????; CJK (???) ????????. Unicode ???????, ?????
???????: ????, ????, ???????? (???, ????, ????,
????, ???, ????, ??). ?????????????? (? PC ????).
Perl ??? Unicode ????. ??? Perl ????????? Unicode ??; Perl ?
????? (?????????) ??? Unicode ????. ???????, ????
? Unicode ????????????, Perl ??? Encode ????, ????????
???????????.
Encode ????????????????? ('big5' ?? 'big5-eten'):
big5-eten Big5 ?? (???????)
big5-hkscs Big5 + ?????, 2001 ??
cp950 ??? 950 (Big5 + ???????)
????, ? Big5 ??????? Unicode, ????????:
perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8
Perl ???? "piconv", ????? Perl ???????????, ????:
piconv -f big5 -t utf8 < file.big5 > file.utf8
piconv -f utf8 -t big5 < file.utf8 > file.big5
??, ?? encoding ??, ?????????????????, ????:
#!/usr/bin/env perl
# ?? big5 ????; ????????????? big5 ??
use encoding 'big5', STDIN => 'big5', STDOUT => 'big5';
print length("??"); # 2 (???????)
print length('??'); # 4 (????????)
print index("????", "??"); # -1 (???????)
print index('????', '??'); # 1 (?????????)
????????, "?" ???????? "?" ?????????? Big5 ?? "?"; "
?" ????????? "?" ?????????? "?". ?????? Big5 ????
???????.
???????
???????????, ??? CPAN (<http://www.cpan.org/>) ?? Encode::HanExtra
??. ???????????:
cccii 1980 ????????????
euc-tw Unix ?????, ?? CNS11643 ?? 1-7
big5plus ????????????? Big5+
big5ext ????????????? Big5e
??, Encode::HanConvert ????????????????:
big5-simp Big5 ????? Unicode ??????
gbk-trad GBK ????? Unicode ??????
??? GBK ? Big5 ????, ????????? b2g.pl ? g2b.pl ????, ????
???????:
use Encode::HanConvert;
$euc_cn = big5_to_gb($big5); # ? Big5 ?? GBK
$big5 = gb_to_big5($euc_cn); # ? GBK ?? Big5
??????
??? Perl ????????? (?????????), ??????? Perl ???, ?
? Unicode ?????. ??, ?????????:
?? Perl ?????
<http://www.perl.com/>
Perl ??? (????????)
<http://www.cpan.org/>
Perl ????? (Comprehensive Perl Archive Network)
<http://lists.perl.org/>
Perl ??????
?? Perl ???
<http://www.oreilly.com.tw/chinese/perl/index.html>
????????? Perl ??
<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>
?? Perl ????? (????? BBS ? Perl ???)
Perl ?????
<http://www.pm.org/groups/asia.shtml#Taiwan>
?? Perl ?????
<http://irc.elixus.org/>
????????
Unicode ????
<http://www.unicode.org/>
Unicode ???? (Unicode ??????)
<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
Unix/Linux ?? UTF-8 ? Unicode ???
?????
???? "????" ?? "????"?
<http://www.csie.ntu.edu.tw/~b7506051/mozilla/faq.html#faqglossary>
???????
<http://www.cpatch.org/>
Linux ???????
<http://www.linux.org.tw/CLDP/>
SEE ALSO
Encode, Encode::TW, encoding, perluniintro, perlunicode
AUTHORS
Jarkko Hietaniemi <jhi AT iki.fi>
Autrijus Tang (???) <autrijus AT autrijus.org>
perl v5.8.8 2006-01-07 PERLTW(1)
Generated by $Id: phpMan.php,v 4.54 2007/08/21 09:05:22 chedong Exp $ Author: Che Dong
On Apache/2.2.3 (Red Hat)
Under GNU General Public License
2009-11-10 09:14 @127.0.0.1 CrawledBy CCBot/1.0 (+http://www.commoncrawl.org/bot.html)