Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Appending and empty files

by zentara (Archbishop)
on Sep 20, 2011 at 18:46 UTC ( [id://926998]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://926998]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found