我正在讀取文件/,STDIN并在尋找特定值:use strict;use warnings;my $find = 'def'; while (<DATA>) { if ($_ eq $find) { print "Found: $_\n"; # Never reached! }}__DATA__abcdefxyz為什么條件永遠不匹配?
- 1 回答
- 0 關(guān)注
- 321 瀏覽
添加回答
舉報
0/150
提交
取消