in reply to Appending and empty files

I'm going to just going to give this code a shot. Any better ideas?

$cmd = ">temp"; system ($cmd);
all the best!

Replies are listed 'Best First'.
Re^2: Appending and empty files
by zentara (Cardinal) on Sep 20, 2011 at 18:46 UTC
      Yeah, just figured that out, I'm resolving the issues you previously stated now.
      I found that it doesn't work. Could you explain to me why? Thanks!

        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