Hello - I am very frustrated - after quite a while I can't get my ActivePerl
to work on anything in windows. Say I want to find the word Good and change
it to Bad in the file MyFile.asc
 
I try:
 
C:\changeIt.pl -e "s/Good/Bad/" MyFile.asc
 
Then open MyFile.asc and nothing happens - then I try this:
 
# this is a script to clean
 
open(IN,"fileToClean.asc") || die "can't open!";
 
while(<IN>) {
    s/Good/Bad/;
    print;
}
 
On the screen I can see that this is working, but when I open the file,
guess what? Nothing has changed! I tried a question on this same topic
awhile ago and everybody said that they got it to work in cgywin and unix
etc - I'll try again - can anybody figure out what I am doing wrong?
 
Thanks,
 
tim


Reply via email to