Perl — Getopt::Std
Getopt::Std模块的使用:
初始设置:
在程序中加入如下代码:
3
4
5
use Getopt::Std;
use vars qw($opt_d $opt_f $opt_p);
...
Getopt::Std模块的使用:
初始设置:
在程序中加入如下代码:
3
4
5
use Getopt::Std;
use vars qw($opt_d $opt_f $opt_p);
...
vars 是一个Perl的pragma,用来预定义全局变量。这些预定义后的全局变量qw()列表中的在整个Perl文件中皆可使用,使用了use strict也不会报警:
use strict;
$string = "Hello,Perl";
print $string...
Pragma in Perl
In a,hopefully futile, effort to confuse programmers, the use directive, was given a second job to do. It turns other compiler directives on and off. For example, you might want to force Perl to use integer math instead of floati...
http://atman.memoab.com/articles/92
...I use name-based virtual hosting on Linux with Apache and PHP 4.3.2.
Every time when I refreshed (by pressing F5 in Internet Explorer) I noticed that I got a new session_id. Simultaneously browsing the same site with Netscape didn't give me that...
1、Perl参数:$ARGV
$ARGV[0]....$ARGV[n]
$ARG[0]是第一个参数,不是脚本文件名,和C不一样。参数个数:$ARGV+1
2.while....continue
continue作为while或者foreach的一个尾巴,常常附在这些的末...
您遇過這樣的狀況嗎:
無法寄信
在.bsdlab.idv.tw網域中使用Win95/98之Outlook Express透過mail.lab.mlc.edu.tw主機寄信給kemin.lin@msa.hinet.net時,發生錯誤:
無法傳送郵件,因為有一位收件...
htmldoc能够将html转换成PDF文件
htmldoc 包括2个版本,开源版本和商业版本。 ubuntu上是可直接使用 sudo apt-get install htmldoc 安装的。 Windows上的用户如果不想出点血,就得自己去编译了吧...
http://www.dreamdu.com/xhtml/
什么是XHTML?
XHTML是EXtensible HyperText Markup Language的英文缩写,即可扩展的超文本标记语言.
XHTML语言是一种标记语言,它不需要编译,可以直接由浏览器执行(属...
安装subversion-1.4.3
#cd /root/soft
#tar jxvf subversion-1.4.3.tar.bz2
#tar jxvf subversion-deps-1.4.3.tar.bz2
#cd /root/soft/subversion-1.4.3
#./configure --prefix=/opt/subversion --with-apxs=/opt/httpd-2.0.61/bin/apxs...