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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sameh Abdelatef

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

    Dear perl experts,

    I used to use[ open (FAILEHANDLER, ">>$filenam e");] 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.
  • Joe Smith

    #2
    Re: open (FAILEHANDLER, ">>$ filename") what is the rong with that

    Sameh Abdelatef wrote:
    [color=blue]
    > I used to use[ open (FAILEHANDLER, ">>$filenam e");] 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.[/color]

    You have correctly described the difference between ">>" and ">".
    So, what is the problem?
    -Joe

    Comment

    Working...