I have a need to change my path to perl in all my cgi-bin perl scripts (https://discussion.dreamhost.com/thread-136493.html) but I can't figure out why I'm having so much trouble. Using a ssh session from a new WIN 7 PC with Putty, I made a backup copy of my cgi-bin directory, then started working on the backup copy. I changed to the directory, put a line of sed in a file using vi s:/usr/local/bin/perl:/usr/bin/perl:
Then ran it with the line sed -f path.sed *.cgi
On the terminal screen I get a bunch of the first couple perl scripts flash by, then lots of binary code, then lots of "Putty" repeated over and over. And the path doesn't get changed in my perl scripts.
I wonder if I have all my terminal settings correct in Putty on this new PC, because all my # comment characters appear as the English pound sign in my putty window. I cranked up the old PC and they appear as # in that old install of Putty. Can't find any differences in the terminal setup between PCs.