Re: windows perl just doesn't seem to work

2002-02-13 Thread Dennis G. Wicks
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

RE: windows perl just doesn't seem to work

2002-02-13 Thread Jason Larson
# 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! snip ...can anybody figure out what I am doing wrong? I'm still very

RE: windows perl just doesn't seem to work

2002-02-12 Thread Timothy Johnson
That is because you are only printing the changes to the screen. Try this: open(IN,fileToClean.asc); while(IN){ 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]]