|Do you know where your variables are?|
Text File Manipulationby sabas (Novice)
|on Jan 14, 2020 at 01:03 UTC||Need Help??|
sabas has asked for the wisdom of the Perl Monks concerning the following question:
I have two files:
I am wondering what is the best way to replace the first entry in file1.txt(JO EMS Math) with my row in file2.txt (Jon EMS Physics) without changing the row format like padding and spacing.
Note that I know the row number/index that I would like to replace.
I stored and worked on @ and was able to do the replacement however the padding and spacing changed. I also tried to create a temporary .txt file and write the rows however the spacing also changed.
Appreciate if someone can give me an advise..
2020-01-15 Athanasius added code and paragraph tags.