If I uncomment #print, the output gives me exactly what I expect, but the file is not updating. What am I missing here? I need to update the file line by line because the file may be extremely large and I do not want to pull the whole thing into memory.open(DATA, "+<myfile.csv") || die "Error: $!"; while(<DATA>) { s/foo/bar/g; # print; } close(DATA);
In reply to Using read/write to update a file by PackerX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |