more useful options | |
PerlMonks |
Re^3: Next Line Assigning to A Scalarby davido (Cardinal) |
on Oct 30, 2014 at 15:59 UTC ( [id://1105647]=note: print w/replies, xml ) | Need Help?? |
So implement the algorithm as follows:
Each time you are storing the current line so that on the next iteration you can refer back to it. Whenever you store the current line, it replaces the line you previously stored. You still haven't taken the time to show us sample output that the program would produce with specific sample input. Anyway, get started implementing the algorithm I've described, and let us know when you're stuck. Dave
In Section
Seekers of Perl Wisdom
|
|