See perldoc perlrun.
This single-line font changes each occurrence from search_str to replace_str in each line of the file, automatically printing the resulting line.
The -i.bak switch causes it to modify the file in place and store the backup in another file with the .bak extension.
source share