my($find) = "cps***"; my($replace) = "nat***"; my $copy; if(-e $ARGV[0]) { $copy = "$ARGV[0].bak"; copy($ARGV[0], $copy) or die "File cannot be copied. \n"; }
See also: Variables and Scoping
In reply to Re: Find and Replace
by toolic
in thread Find and Replace
by PyrexKidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |