sxw (^_^)当前离线
少尉
#usr/bin/perl open (FH,"<a.txt") || die "Can't find it\n"; while (<FH>) { $a=$. if /444perl/; } close FH; open (FH,"<a.txt") || die "Can't find it\n"; $b=$a-2; $c=$a+1; if ($b..$c) {print}; close FH;复制代码
TOP