D
David Harmon
I try to modify a file in place with
perl -i.bak myfunc.pl data.txt
but instead of modifying in place, I get output to the screen
and a zero-length data.txt. The original data.txt is renamed
to data.txt.bak as expected.
What should my command line be?
I'm using perl v5.8.8 built for MSWin32-x86-multi-thread
Binary build 819 [267479] provided by ActiveState
Windows XP.
Simplified myfunc.pl is:
for (<>) {
print;
}
perl -i.bak myfunc.pl data.txt
but instead of modifying in place, I get output to the screen
and a zero-length data.txt. The original data.txt is renamed
to data.txt.bak as expected.
What should my command line be?
I'm using perl v5.8.8 built for MSWin32-x86-multi-thread
Binary build 819 [267479] provided by ActiveState
Windows XP.
Simplified myfunc.pl is:
for (<>) {
print;
}