in reply to again problem with regexpr
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
|
|---|