Hi
I need a perl program which will substitute all occurrence of
'wood' of a file (say data.txt) by 'food'.
The word 'wood' may occur anywhere in the file, beginning of a line, in the middle or anywhere.
I need a file operation only, the program should open the file data.txt, make the substitution and save the changes.
I do not want any inline editing (perl -i )
In reply to how to substitute a word in a file by perl by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |