一直不习惯PERL直接PRINT输出HTML,想如果象PHP一样就方便了,看看 把程式語言嵌在 HTML 裡, 一直是許多網頁計者的夢想... 最近紅透半邊天的 PHP (讓 M$ 的 ASP 靠邊站), 成為廣大網站設計者的最愛(超過100萬個站台), 身為 Perl 的愛好者, 不禁要問: Perl 也可以嵌在 HTML 中嗎? 答案是: 可以的! www.shengfang.org 以下為您介紹三種不錯的 Embed Perl: Mason - http://www.masonhq.com/ Embperl - http://perl.apache.org/embperl/index.html ePerl - http://www.engelschall.com/sw/eperl/ 首先, 您必須安裝好 Apache + mod_perl Mason安裝法: perl Makefile.PL PerlRequire /usr/local/mason/handler.pl Alias /mason /usr/local/www/htdocs <location /mason> www.shengfang.org 重新啟動 Apache. Embperl 及 ePerl 的安裝法類似,請自行參考程式包中的安裝說明. 可是我实在WINDOWS下面,实在没有办法直接安装。 www.shengfang.org 进行搜索也不行 www.shengfang.org 又搜索了半天,看到这个 www.shengfang.org OSSP eperl interprets a text file bristled with Perl program statements by evaluating the Perl code while passing through the plain text data. It can operate in various ways: As a stand-alone Unix filter or integrated Perl module for general file generation tasks and as a powerful webserver scripting language for dynamic HTML page programming.
ppm> install http://theoryx5.uwinnipeg.ca/ppms/Embperl-1.ppd Fetching http://theoryx5.uwinnipeg.ca/ppms/scripts/libxml2.dll ... done! 字体:大 中 小 |
![]() | 永久地址 http://www.shengfang.org/blog/p/perl6embperl1.php |
![]() | 引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1126676686 |
2005年9月14日13:44星期三 [Dev开发]





