|
|
1
5
|
|
|
2
3
尽管打电话
你的命令最多只能产生一行,所以用标量来表示, 例如 ,
注意退出状态
也,
例如: $ > input.dat $ ./prog.pl ./prog.pl: no match [] $ echo win >input.dat $ ./prog.pl ./prog.pl: hit! [win] $ rm input.dat $ ./prog.pl tail: cannot open `input.dat' for reading: No such file or directory ./prog.pl: no match [] |
|
|
3
1
|
|
|
4
-1
好。。。抓挠这个…我没有把filehandle连接成管道的输出。 你应该用 stat 要确定文件的大小,但您需要 确保首先刷新文件:
|
|
|
Carsten · 使用最近的搜索模式更改文本块 1 年前 |
|
|
A.Ellett · 测试-t STDIN与-t<STDIN> 1 年前 |
|
|
con · 如何跳转到foreach迭代的特定点? 1 年前 |