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

windows perl just doesn't seem to work

Thread Next
Booher Timothy B 1stLt AFRL/MNAC
February 12, 2002 16:05
windows perl just doesn't seem to work
Message ID:
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:\ -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>) {
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?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About