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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Number Line while reading by chunks
by massa (Hermit) on Aug 18, 2008 at 11:20 UTC | |
|
Re: Number Line while reading by chunks
by JavaFan (Canon) on Aug 18, 2008 at 11:43 UTC | |
|
Re: Number Line while reading by chunks
by Perlbotics (Archbishop) on Aug 18, 2008 at 11:52 UTC | |
by ambs (Pilgrim) on Aug 22, 2008 at 18:22 UTC |