In what way does it not work? Nothing gets printed out to the file at all? Do you know for certain that that path exists? Are the two servers both Unixy or is one Windows? What do you get if you add in a
print "$single_value|"; inside the loop? Does anything get printed there?
Let us know some more details.