- 论坛徽章:
- 0
|
perl -pe 'BEGIN{$a=4}{if($.==$a){print ":commit;\n";$a+=10}}' 1.txt
Can't find string terminator "'" anywhere before EOF at -e line 1.
E:\0011>perl -lpe 'print "xxx" if $. !=1 && ($. - 1) % 3 == 0' 1.txt
% was unexpected at this time.
E:\>perl -i -p -e 'if($. % 10000 == 0) {$_ = "$_commit\n"}' z_w_cell_daily_kpi.sql
Can't find string terminator "'" anywhere before EOF at -e line 1.
E:\>perl -v
This is perl, v5.10.0 built for MSWin32-x64-multi-thread
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
难道是我的版本有问题?但运行我的其它pl程序不出错!
我的环境,win7 x64,perl是oracle11g x64自带的,它的版本信息见上 |
|