Chinaunix首页 | 论坛 | 博客
  • 博客访问: 175686
  • 博文数量: 34
  • 博客积分: 2245
  • 博客等级: 大尉
  • 技术积分: 360
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-23 11:41
文章分类

全部博文(34)

文章存档

2011年(1)

2010年(28)

2009年(5)

分类:

2010-02-25 11:17:33

Predefined Variables Perl provides a large number of predefined variables. The following is a list of some common predefined variables:
  $_ The default input and pattern-searching space.
  $. Current line number for the last filehandle accessed.
  $@ The Perl syntax error message from the last eval() operator.
  $! Yields the current value of the error message, used with die.
  $0 Contains the name of the program being executed.
  $$ The process number of the Perl running this script.
  $PERL_VERSION / $^V The revision, version, and subversion of the Perl interpreter.
  @ARGV Contains the command-line arguments.
  ARGV A special filehandle that iterates over command-line filenames in @ARGV.
  @INC Search path for libarary files.
  @_ Within a subroutine the array @_ contains the parameters passed to that subroutine.
  %ENV The hash %ENV contains your current environment.
  %SIG The hash %SIG contains signal handlers for signals.
阅读(1515) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~