Chinaunix首页 | 论坛 | 博客
  • 博客访问: 453205
  • 博文数量: 142
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 1861
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-03 21:00
文章分类

全部博文(142)

文章存档

2011年(3)

2010年(32)

2009年(107)

我的朋友

分类: WINDOWS

2009-10-21 12:23:24

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);


阅读(2440) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~