pysome has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I wanna add some text to a file in its fixed position.Say the line 3. How to achieve? That is , if the file(a.txt) like:
I wanna add some text to a file in its fixed position.Say the line 3. How to achieve? That is , if the file(a.txt) like:
ab cd ef ghij klmnI wanna add "a test content\n" after the "ef".My ideal result is :
ab cd ef a test content <blank line> ghij klmn
Back to
Seekers of Perl Wisdom