- 论坛徽章:
- 0
|
原帖由 ly5066113 于 2008-1-2 11:14 发表 ![]()
WINDOWS上'要换成"
perl -F"=" -lane "print $F[1] if /^aaa/" urfile
似乎"F"这个东西有问题.错误信息:
String found where operator expected at C:\Documents and Settings\lyu\Desktop\Bb
\old.pl line 22, near "F"=""
String found where operator expected at C:\Documents and Settings\lyu\Desktop\Bb
\old.pl line 22, near "lane "print $F[1] if /^aaa/""
(Do you need to predeclare lane?)
String found where operator expected at C:\Documents and Settings\lyu\Desktop\Bb
\old.pl line 22, near ""print $F[1] if /^aaa/" "C:\\Documents and Settings\\lyu\
\Desktop\\Bb\\1111.txt""
(Missing operator before "C:\\Documents and Settings\\lyu\\Desktop\\Bb\
\1111.txt"?)
syntax error at C:\Documents and Settings\lyu\Desktop\Bb\old.pl line 22, near "F
"=""
Execution of C:\Documents and Settings\lyu\Desktop\Bb\old.pl aborted due to comp
ilation errors. |
|