I've a perl file changes.pl already. I can run changes.pl via cmd command. I'm looking for disabling saving backup files option. I've tried cmd command 1 and 1a. But, I get result from running any of both.
changes.pl
BEGIN {
@ARGV = map glob("\"$_\""), @ARGV;
}
s/a/b/g;
s/c/d/g;
s/e/f/g;
cmd command
perl -i.bak -p changes.pl My/Files/Directory/*.txt
cmd command 1
perl -i -p changes.pl My/Files/Directory/*.txt
cmd command 1a (back-slash version of cmd command 1)
perl -i -p changes.pl My\Files\Directory\*.txt
Result
I get nothing at all. The cmd command doesn't terminate even.
Note:
- I'm using Perl on Windows.
- I've gotten changes.pl and cmd command from Borodin's answer on a previous question of mine.