- 论坛徽章:
- 0
|
特殊的字符问题~(二)
我测试了一下,在win2000 perl 5.8.0 下,无论文本还是二进制都可以读进
所有字符0-255 都试了,只是有回车和回车换行的转换差别,但 Learning Perl 上说有的系统是以 ctrl-D表示文件结束,有的系统是以ctrl-Z表示文件结束
原文如下:
@a = <STDIN>;; # read standard input in a list context
If the person running the program types three lines, then presses
CTRL-D[4] (to indicate "end of file" , the array ends up with three elements. Each element will be a string that ends in a newline, corresponding to the three newline-terminated lines entered.
[4] Some systems use CTRL-Z to indicate end of file, while others use it to suspend a running process. |
|