471,888 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

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 1445
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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.