+ -
当前位置:首页 → 问答吧 → perl 生成html或xml

perl 生成html或xml

时间:2010-12-02

来源:互联网

在perl怎样生成html 或是 xml呢?

例如
--- /path/to/original ''timestamp''
+++ /path/to/new      ''timestamp''
@@ -1,3 +1,9 @@
+This is an important
+notice! It should
+therefore be located at
+the beginning of this
+document!


以上内容是通过svn diff 生成的,想用perl将这些内容输出到 html 或是 xml 格式的文件里

就是说perl 有什么办法可以展示结果,输出什么格式都可以

谢谢!

作者: cllggg   发布时间: 2010-12-02

如果不是很复杂我觉的可以用perl自己的格式化输出
参考perldoc -f format
或者直接一行一行的print

如果是很复杂的页面我觉的可以用Template::Toolkit

作者: bzdghdn   发布时间: 2010-12-03

热门下载

更多