469,578 Members | 1,775 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

open (FAILEHANDLER, ">>$filename") what is the rong with that

Dear perl experts,

I used to use[ open (FAILEHANDLER, ">>$filename");] to open and add
new lines to $filename, but it didn't work any more. The perl version
is 5.8.1. When I try [ open (FAILEHANDLER, ">$filename");] it's work
but the content of $filename is deletd.
Any help will be appreciated.
Jul 19 '05 #1
1 1403
Sameh Abdelatef wrote:
I used to use[ open (FAILEHANDLER, ">>$filename");] to open and add
new lines to $filename, but it didn't work any more. The perl version
is 5.8.1. When I try [ open (FAILEHANDLER, ">$filename");] it's work
but the content of $filename is deletd.


You have correctly described the difference between ">>" and ">".
So, what is the problem?
-Joe
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Dan Jacobson | last post: by
1 post views Thread by Jesper Hermansen | last post: by
17 posts views Thread by teser3 | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.