perl基本命令罗列:
1.查看perl版本
perl -v
This is perl, v5.8.3 built for sun4-solaris-thread-multi
(with 8 registered patches, see perl -V for more detail)
Copyright 1987-2003, Larry Wall
Binary build 809 provided by ActiveState Corp.
ActiveState is a division of Sophos.
Built Feb 3 2004 00:32:12
Perl may be copied only under the terms of either the Artistic
License or the GNU General Public License, which may be found in
the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be
found on this system using `man perl' or `perldoc perl'. If you
have access to the Internet, point your browser at
the Perl Home Page.
2.查看某个模块
格式:perl modleName
eg. perl CGI
3.查看某个sub函数
格式:perl -f subname
eg. perldoc -f localtime
localtime EXPR
localtime
Converts a time as returned by the time function to a 9-element
list with the time analyzed for the local time zone. Typically
used as follows:
# 0 1 2 3 4 5 6 7 8
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
阅读(2433) | 评论(0) | 转发(0) |