2. Now rename temp file to original file.while($line=<FH>) { $line=~s/foo/baz/g; # Replace all occurrences. #Write $line to a temp file }
In reply to Re: PERL newbie question
by cheekuperl
in thread PERL newbie question
by coding101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |