@tmp is a completely separate variable that is not tied to the file. The split copies the data. You would have to add the following inside the foreach-loop to change the file as you intented:
$i= join(',',@tmp);
Note that even this works only because $i actually is an alias to the data in @lines and not a copy (this is magic done by the foreach loop)
In reply to Re^3: Tie::File Write Problem
by jethro
in thread Tie::File Write Problem
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |