作者yatings (查无此人!)
看板perl
标题[问题] 如何撰写开启.html档案的perl程式?
时间Wed May 4 12:42:17 2005
请问:
假设我要开启硬碟中一个.html的档案,
且只输出内容,不包括html的tag.....
那麽perl语言的程式该如何撰写呢?
谢谢!:)
已下提供写好但输出包括html tag且中文为乱码的程式
$file_name="test/test.html";
open(FILE, "$file_name") || die "!\n";
@all=<FILE>;
close(FILE);
$i=0;
foreach(@all){
$i++;
print;
}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 163.23.225.206