-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use strict; | ||
use warnings; | ||
# Question: | ||
# 这两行的含义? | ||
|
||
# Usage | ||
die "perl $0 <word>\n" if(@ARGV==0); | ||
# Question: | ||
# @ARGV==0 是啥意思? | ||
|
||
# 接收参数 | ||
my($word) = @ARGV; | ||
# Question: | ||
# @ARGV是一个什么变量? | ||
|
||
print "hello $word\n"; | ||
# Question | ||
# print 的用法 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/perl | ||
##Copyrigh (C) 2011 by linchao | ||
#Program: | ||
# 练习Perl的运算符 | ||
#2017/01/22 林超 First release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/perl | ||
##Copyrigh (C) 2011 by linchao | ||
#Program: | ||
# Perl变量练习 | ||
#2017/01/21 林超 First release | ||
|
Empty file.