develooper Front page | perl.beginners | Postings from February 2002

windows perl just doesn't seem to work

Thread Next
From:
Booher Timothy B 1stLt AFRL/MNAC
Date:
February 12, 2002 16:05
Subject:
windows perl just doesn't seem to work
Message ID:
30C9E24891FFD411B68A009027724CB70207D2D9@eg-002-015.eglin.af.mil
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About