in reply to Re: truncate or trunc
in thread truncate or trunc

Please bracket your code with <code> and </code>. Thanks.

I assume you opened a file with the filehandle DATA? Please change that to something else. DATA is reserved for a block of sample data within your program.

Then you might consider testing your error returns...