![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Number Line while reading by chunksby ambs (Pilgrim) |
on Aug 18, 2008 at 11:05 UTC ( #704907=perlquestion: print w/replies, xml ) | Need Help?? |
ambs has asked for the wisdom of the Perl Monks concerning the following question: Hello. When we use a different record separator (for instance, an empty new line), the variable dollar dot ($.) does not count the number of lines read, but the number of chunks read. My question is if there is any automatic method to get the line number where a chunk starts (I know, and I am able to do it manually. Just to be sure I am not re-inventing the wheel). Thanks, Alberto Simões
Back to
Seekers of Perl Wisdom
|
|