顯示具有 perl 標籤的文章。 顯示所有文章
顯示具有 perl 標籤的文章。 顯示所有文章

星期二, 4月 08, 2008

perl benchmark

benchmark
Devel::DProf
Bundle::Devel
Devel::Trace
Devel::SmallProf

星期一, 12月 24, 2007

Parrot

Parrot is a virtual machine

http://www.parrotcode.org/

星期一, 12月 10, 2007

Changing the working directory

In the shell you would type "cd /home" to change the workingdirectory to /home. You could write the following in your Perl script:

system("cd /home");

But it would have no effect. In fact, since the system call forksfrom the process used by the interpreter, it doesn't change the workingdirectory of your script. Instead, you can use a Perl function called"chdir":

chdir "/home";

http://www.linuxforums.org/programming/learn_perl_in_10_easy_lessons__lesson_5.html

星期四, 9月 27, 2007

星期二, 8月 21, 2007

Encode::HanExtra

update Encode::HanExtra

split.pl
open(CCCII, "/home/laxendion/tools/UNI_CI_V3.txt");
open(NEW,"> /home/laxendion/tools/UNI.txt");

foreach (){
($Uni,$Cii,$other) = split (/,/,$_);
$Uni =~ /(\d)(\w)(\w)(\w)(\w)/g;
if ($1 == 0){
$Uni = "";
$Cii =~ s/(\w\w)(\w\w)(\w\w)/\\x$1\\x$2\\x$3/g;
$other = "|0";
print NEW "$Uni $Cii $other\n";
}
elsif ($1 == 2){
$Uni = "";
$Cii =~ s/(\w\w)(\w\w)(\w\w)/\\x$1\\x$2\\x$3/g;
$other = "|0";
print NEW "$Uni $Cii $other\n";
}
}
close(CCCII);
close(NEW);

send to 唐鳳
cccii.ucm
http://kohataiwan.googlegroups.com/web/cccii.ucm

星期日, 7月 22, 2007