T
Troll
Hi,
This is related to my previous post but I made it much simpler...
open (INFILE, "test.txt");
while (<>) {
print $_;
s/one/two/g;
print $_;
}
I really cannot think now - why are the contents of test.txt not being
changed?
print$_ output gives me
one
two
one
two
but cat test.txt is still:
one
one
Thanks
This is related to my previous post but I made it much simpler...
open (INFILE, "test.txt");
while (<>) {
print $_;
s/one/two/g;
print $_;
}
I really cannot think now - why are the contents of test.txt not being
changed?
print$_ output gives me
one
two
one
two
but cat test.txt is still:
one
one
Thanks