in reply to Re^2: Appending and empty files
in thread Appending and empty files

I found that it doesn't work. Could you explain to me why? Thanks!

Replies are listed 'Best First'.
Re^4: Appending and empty files
by Anonymous Monk on Sep 21, 2011 at 07:34 UTC

    You don't need system to clobber temp, open my($fh), '>', 'temp' will clobber temp, which means your problem is your program logic and/or input data

    Meaning, the open statement (after the first one) which is supposed to clobber temp is never executed