Chinaunix首页 | 论坛 | 博客
  • 博客访问: 457380
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: PERL

2014-06-10 13:16:20


点击(此处)折叠或打开

  1. [root@cdn conf]# perl -MData::Dumper -e 'print Dumper \@ARGV'
  2. $VAR1 = [];
  3. [root@cdn conf]# perl -MData::Dumper -e 'print Dumper \@ARGV' a b
  4. $VAR1 = [
  5.           'a',
  6.           'b'
  7.         ];
  8. [root@cdn conf]# perl -w -MData::Dumper -e 'print Dumper \@ARGV' a b
  9. $VAR1 = [
  10.           'a',
  11.           'b'
  12.         ];
  13. [root@cdn conf]# perl -MData::Dumper -e 'print Dumper \@ARGV' a b -w
  14. $VAR1 = [
  15.           'a',
  16.           'b',
  17.           '-w'
  18.         ];
  19. [root@cdn conf]# perl -e 'print "$$\n"'
  20. 10179
  21. [root@cdn conf]# perl -e "print "$$\n""
  22. Bareword found where operator expected at -e line 1, near "10085n"
  23.         (Missing operator before n?)
  24. syntax error at -e line 1, next token ???
  25. Execution of -e aborted due to compilation errors.
  26. [root@cdn conf]#

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