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

$cmd = ">temp"; system ($cmd);
That won't work.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^3: Appending and empty files
by Jeri (Scribe) on Sep 20, 2011 at 18:55 UTC
    Yeah, just figured that out, I'm resolving the issues you previously stated now.
Re^3: Appending and empty files
by Jeri (Scribe) on Sep 20, 2011 at 19:30 UTC
    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