I want to build a prog to read and concurrently edit edit text files in perl. For the first stage, I just wanted to write up a script which will make the lines of a text file appear one after the other after a certain time interval.
I reckon this is achieveable for my elementary perl knowledge.
I plan to:
- slurp the file lines as a scalar
- split according to sentences
- put into an array and then
- print the array elements out,
- waiting a certain time interval each time.
Sounds like something some one has done already? Is there a wait function in perl? Can I write over the the previously printed-out array elements?
Thanks in adv for advice.