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

Discussion in 'Perl' started by Sameh Abdelatef, Mar 6, 2004.

  1. 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.
     
    Sameh Abdelatef, Mar 6, 2004
    #1
    1. Advertising

  2. Sameh Abdelatef

    Joe Smith Guest

    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
     
    Joe Smith, Mar 6, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    Extract filename from a filename typed by user

    =?Utf-8?B?Sm9l?=, Aug 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,043
    Travis Murray
    Aug 24, 2004
  2. Peter Otten
    Replies:
    0
    Views:
    428
    Peter Otten
    Nov 30, 2010
  3. Peter Otten
    Replies:
    10
    Views:
    889
    Nobody
    Dec 2, 2010
  4. Dan Stromberg
    Replies:
    0
    Views:
    949
    Dan Stromberg
    Dec 6, 2010
  5. Sameh Abdelatef
    Replies:
    4
    Views:
    102
    Anno Siegel
    Mar 6, 2004
Loading...

Share This Page