xanadol has asked for the wisdom of the Perl Monks concerning the following question:
ABC 123 HELLO
23222 PERL MATLAB
BARCELONA ISTANBUL CAIRO
I want to add a new line to this file with the word data, but I also want the original first line to be the second line, second to be the third, third to be.....ect, and thus, the final processed file should be like this:data
ABC 123 HELLO
23222 PERL MATLAB
BARCELONA ISTANBUL CAIRO
You get the point, right? Any help you can provide will come back at you as karma points, so please help this poor newbie out on a nice Friday morning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add a Line to a Text File
by xanadol (Novice) on Aug 23, 2013 at 17:43 UTC | |
by Athanasius (Archbishop) on Aug 24, 2013 at 04:04 UTC |