Perl_TK
今天学了一下TK,发现挺好玩的.
#!/usr/bin/perl -w
use strict;
use Tk;
my $mw = MainWindow->new;
$mw->title(“First Tk”);
$mw->Button(-text=>”Go to sleep.”,-command=>sub{exit})->pack;
MainLoop;
试了一下中文的显示效果,竟然又是乱码…难道perl都不支持中文吗?
use Encode;
use Encode::CN;
$dat=”中文”;
$str=decode(“gb2312″,$dat);
@chars=split //,$str;
foreach $char (@chars) {
print encode(“gb2312″,$char),”n”;
}
终于知道怎么弄中文了,害我好苦,哈哈.
犬夜叉的英文介紹
Inuyasha is a long-running anime that tells the story of Kagome, an everyday teenage girl who is whisked away, one fateful day, to Feudal Japan. This isn’t the Feudal Japan you read about in history books though, it emanates with magic and wonderful things and is overrun by demons. Upon stepping out of the magic well that transported her to this time period, Kagome comes upon one such demon, Inuyasha. Inuyasha isn’t like all the rest though, he is considered a hanyou, a half-human, half-demon. He is also sealed to a tree by an arrow in the chest.
Kagome grows an instant fondness for Inuyasha and releases him from his ethereal fetters. Though Inuyasha takes coldly to Kagome and confuses her for someone else, their relationship slowly grows over time. And what a great length of time they spend together! After it is revealed that Kagome has the legendary Shikon Jewel on/in her body (grin), it is almost soon-after shattered into pieces, which disperse themselves throughout the world. It then becomes up to Kagome and Inuyasha to recover the pieces. As the two travel, they learn a great deal about themselves and one-another. Twists and turns abound. Inuyasha and Kagome also bump into a colorful cast of characters, who either join them on their quest or try to kill them.
It didn’t take me long to fall in love with Inuyasha. The series simply does a lot of things right, and that’s not really surprising, considering that it was and still is such a successful franchise. There are four points about Inuyasha that I feel really make the series. The first point is its humor, the second is its action, the third is its plot twists, and fourth are its characters.