in reply to Unexpected deletion of data using > operator

Considering that in your code fragment, @customerarray is empty (there's no code that initializes it), I'm not surprised you end up with an empty file.

Furthermore, you don't initialize $timestamp either. Perhaps you do the initialization of the variables elsewhere in your program, but these values are essential in understanding why things go wrong. So, don't leave out that code.

  • Comment on Re: Unexpected deletion of data using > operator