Update: Oops, missed something when doing the test. Code above corrected. This was formerlyperl -ne 'BEGIN {our $n=1; $/="";}; print "=Line:$n, Record:$.==\n$_"; + $n += y/\n/\n/;'< textfile
In reply to Re: Number Line while reading by chunks
by Perlbotics
in thread Number Line while reading by chunks
by ambs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |