What you want seems to be inplace editing:
The -i switch makes your script to process the files you pass as arguments to the script inplace. The extra .bak makes it create a backup.#!/usr/bin/perl -i.bak while(<>) { s/trojan is like viruse/hello/g; print }
Alberto Simões
In reply to Re: again problem with regexpr
by ambs
in thread again problem with regexpr
by white-fox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |