># this is a script to clean
>
>open(IN,"fileToClean.asc") || die "can't open!";
>
>while() {
>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! ...can anybody figure out what I am
doing
>wrong?
I'm st
Greetings;
Just for future reference, the Windows command line is not
good for perl things. The use of quotes and escapes is
mostly undocumented and from experience I can say that even
when you think you have it figured out you will find another
situation where it doesn't work. It only takes a fe
That is because you are only printing the changes to the screen. Try this:
open(IN,"fileToClean.asc");
while(){
s/Good/Bad/;
push @out,$_;
}
close IN;
open(OUT,">fileToClean.asc");
print OUT @out;
-Original Message-
From: Booher Timothy B 1stLt AFRL/MNAC
[mailto:[EMAIL PROTECTED