📄 01_4_11_5.asp.html
字号:
<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<TITLE>计算机世界网-Perl 语言全面编译(二)</TITLE></HEAD>
<style>
.a14{font-size:14px;text-indent:25px;line-height:20px}
.f{font-size:18px;color=#0f3ccd}
img{border:0px;}
td,p,input{font-fammily:verdana,宋体;font-size:12px;}
A:link {text-decoration:none;color:black}
A:visited {text-decoration:none;color:#80006f}
A:hover {text-decoration:underline;color:black}
</style>
<center>
<BODY topmargin=2 leftmargin=0>
<style>
.v12{font-size:10pt;color:"#ffffff";FONT-WEIGHT: bold}
.v14{font-size:14px;text-indent:25px;line-height:20px}
img{border:0px;}
td,p,input,select{font-fammily:verdana,宋体;font-size:12px;}
A:link {text-decoration:none;color:black}
A:visited {text-decoration:none;color:#80006f}
A:hover {text-decoration:underline;color:black}
</style>
<style>
.v13{font-size:10pt;color:"#ffffff";FONT-WEIGHT: bold}
.v12{font-size:13px;color:"#4C029C";FONT-WEIGHT: bold}
.v14{font-size:14px;text-indent:25px;line-height:20px}
img{border:0px;}
td,p,input,select{font-fammily:verdana,宋体;font-size:12px;}
A:link {text-decoration:none;color:black}
A:visited {text-decoration:none;color:#80006f}
A:hover {text-decoration:underline;color:black}
</style>
<!--头-->
<table align=center cellpadding="0" cellspacing="0" border="0" width="767">
<tr><td valign=bottom>
<table cellpadding="0" cellspacing="0" border=0>
<tr><td valign=top><img src="ccwlogo1.gif"></td></tr>
<tr><td height="27" valign=top><img src="knowledh.gif" width="207" height="27"></td></tr>
</table></td>
<td valign=bottom width=556 bgcolor="#4c029c" height=96>
<table cellpadding="0" cellspacing="0" border=0 width=556 bgcolor="#4c029c" height=96>
<tr><td height=25 valign=bottom bgcolor="#ffffff" colspan=2 ><img src="top00001.gif" usemap="#F"></td></tr>
<tr valign=middle >
<td align=center valign=middle height="60" align=center>
<!-- <a href="/search/" target=_blank><img src="/img2/esearch.GIF" border=0 width=468 height=60></a> --><a href="http://www.ccw.com.cn/html/search/thememail/" target=_blank><img src="topbannf.gif" border=0 width=468 height=60></a>
</td>
<td align=center width=15%>
<table width=95%>
<tr><td><a href="mailto:center@ccw.com.cn?subject=%E6%88%91%E8%A6%81%E6%8A%95%E7%A8%BF:" target=_blank><font class=v13>我要投稿</a><br><a href="mailto:center@ccw.com.cn?subject=%E7%BC%96%E8%AF%BB%E5%BE%80%E6%9D%A5"><font class=v13>编读往来</a><br><a href="javascript:AddBookMark('计算机世界网首页')"><font class=v13>加入收藏</a></font></td></tr>
</table>
</td>
</tr>
<tr><td bgcolor="#ffffff" height=1 colspan=2 ></td></tr>
<tr><td bgcolor="#b4aafc" height=2 colspan=2 ></td></tr></table>
<map name="F">
<area href="http://www.ccw.com.cn/" shape="rect" coords="29, 3, 61, 18" target=_blank>
<area href="http://www.ccw.com.cn/news1/" shape="rect" coords="72, 3, 143, 18" target=_blank>
<area href="http://www.ccw.com.cn/center/" shape="rect" coords="155, 2, 216, 18" target=_blank>
<area href="http://www.ccw.com.cn/work/" shape="rect" coords="225, 2, 299, 18" target=_blank>
<area href="http://www.ccw.com.cn/search/" shape="rect" coords="310, 3, 364, 19" target=_blank>
<area href="http://www3.ccw.com.cn/" shape="rect" coords="372, 2, 412, 19" target=_blank>
<area href="http://www2.ccw.com.cn/" shape="rect" coords="424, 2, 550, 18" target=_blank></map>
</td></tr>
<tr><td colspan=2 bgcolor="#b4aafc">
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td width=26% align=center><font class=v12>【2003年2月7日】 </font></td>
<td CLASS=V12> <a href="http://www.ccw.com.cn/center/topic.asp">专 题</a> /</td>
<td CLASS=V12><a href="http://www.ccw.com.cn/center/tech.asp">技 术</a> /</td>
<td CLASS=V12><a href="http://www.ccw.com.cn/center/prod.asp">产 品</a> /</td>
<td CLASS=V12><a href="http://www.ccw.com.cn/center/app.asp">应 用</a> /</td>
<td CLASS=V12><a href="http://www.ccw.com.cn/center/net.asp">网 络</a> /</td>
<td CLASS=V12><a href="http://www.ccw.com.cn/center/prog.asp">编 程</a> /</td>
<td CLASS=V12><a href="http://www.ccw.com.cn/center/skill.asp">技 巧</a> </td>
</tr>
</table>
</td></tr>
</table>
<table align=center width=680>
<tr><td align=center><br><h2><font color='#0f3ccd'>Perl 语言全面编译(二)</font></h2>
<br><b><a href="mailto:tanshuai@BIGFOOT.COM"><font color="#0000FF">天水-S.Tanshuai</font></a></b>
<br><hr size=1 width=660 color=#f46240></td></tr></table><br>
<table align=center width=620><tr><td class=a14><b><font size="4">第二节 Perl2EXE 编译方法</font></b></td></tr></table><table align=center width=620><tr><td class=a14>
Perl2EXE 可以在大多数流行系统上编译运行,但是我几乎不用它,我认为它是“最低级”编译。而且它也是最容易被反编译的程序。所以我不推崇它,也不愿意用它。不过适合很多初学者。</td></tr></table><table align=center width=620><tr><td class=a14>
它的原理很简单,知识把原来的Perl代码放入程序中和内置的解析其共同运行,而且速度不如PerlAPP。</td></tr></table><table align=center width=620><tr><td class=a14>
Perl2EXE 同样可以在 <a href="http://ftp.tanshuai.net/pub"><font color="#0000FF"> http://ftp.tanshuai.net/pub</font></a> 和
<a href="ftp://ftp.tanshuai.net/pub/"><font color="#0000FF"> ftp://ftp.tanshuai.net/pub/</font></a> 下载。</td></tr></table><table align=center width=620><tr><td class=a14>
标准方法:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe <程序名></td></tr></table><table align=center width=620><tr><td class=a14>
Perl解析器选项值设定:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe –perloption=“<参数>“ <程序名></td></tr></table><table align=center width=620><tr><td class=a14>
参数主要就是perl解析器的参数如:-w –X –e 等等。</td></tr></table><table align=center width=620><tr><td class=a14>
共享dll库:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe –small <程序名></td></tr></table><table align=center width=620><tr><td class=a14>
如果你是多个程序编译,那么使用这个命令,比较“划算“,你只要把它们的共享dll库,复制到共同的执行目录下,即可。共享DLL库:p2xdll.dll或者p2x560.dll。</td></tr></table><table align=center width=620><tr><td class=a14>
启动图形界面:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe –gui <程序名></td></tr></table><table align=center width=620><tr><td class=a14>
和perlapp是同样的作用。</td></tr></table><table align=center width=620><tr><td class=a14>
设置执行程序的图标:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe –icon=<图标文件名> <程序名></td></tr></table><table align=center width=620><tr><td class=a14>
设置输出文件名:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe <程序名> -o=<文件名></td></tr></table><table align=center width=620><tr><td class=a14>
设置运行系统平台:</td></tr></table><table align=center width=620><tr><td class=a14>
perl2exe –platform=<系统名称> <程序名></td></tr></table><table align=center width=620><tr><td class=a14>
如:Sun操作系统 perl2exe –platform=sun program.pl Linux操作系统 perl2exe –platform=linux program.pl</td></tr>
<tr><td class=a14>
<p align="right"><a href="http://www.ccw.com.cn/htm/app/aprog/01_3_27_4.asp"><font color="#0000FF">上一讲
>></font></a> <a href="http://www.ccw.com.cn/htm/app/aprog/01_4_11_6.asp"><font color="#0000FF"><<
下一讲</font></a></td></tr>
</table><br>
<table align=center width=620><tr><td align=right>(网页编辑:<a href='mailto:app@ccw.com.cn'>徐向阳</a>)</td></tr></table><br>
<br><table align=center width=620><tr><td class=a14>相关文章</td></tr><tr><td><ul>
<li><a href='http://www.ccw.com.cn/htm/app/aprog/01_3_27_4.asp'>Perl 语言全面编译</a></li>
<li><a href='http://www.ccw.com.cn/htm/app/aprog/001228_4.asp'>也谈基于Web的Form多响应技术</a></li>
</ul></td></tr></table>
<table align=center width=620><tr><td align=right>
<form method=post action='/pub/subMail.asp' onsubmit='JavaScript: return chkField(this)'>
<INPUT type='hidden' name='rec' value='10229'>
您的姓名:<INPUT type="text" name=myName size=10>
您朋友的E-mail:<INPUT type="text" name=friendMail size=10>
<INPUT type="submit" value="推荐给好友">
</form>
</td></tr>
<tr><td align=right>
<b>[<a href="javascript:window.close()">关闭窗口</a>]</b>
</td></tr>
</table>
<script language="javascript">function chkField(fmObj)
{if (!fmObj.friendMail.value){
alert("请输入您朋友的E-mail!");
fmObj.friendMail.focus();
return false;
}
return true;
}
</script>
<table align=center width=680>
<tr><td><hr size=1 width=660 color=#f46240></td></tr>
</table><br>
<p align=center>Copyright(C) ccw.com.cn,All rights reserved</p>
<p align=center><b>中国计算机世界出版服务公司版权所有</b></p><!-- This document saved from http://www.ccw.com.cn/htm/app/aprog/01_4_11_5.asp -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -