Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Am I not able to open a file for reading and writing using the +<operator on a FreeBSD OS? For instance: open(FH,"+<file.txt") || die(); When I try, it doesn't give me an error message, but the modifications I try to make seem never to occur when I look at the file later...

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: Opening for reading AND writing?
by I0 (Priest) on Apr 20, 2001 at 10:08 UTC
    How do you try to make the modifications?

    Originally posted as a Categorized Answer.

Re: Opening for reading AND writing?
by tye (Sage) on Apr 20, 2001 at 17:38 UTC
    1) You probably need to seek any time you switch between reading and writing.

    2) This question will be moved to Seekers of Perl Wisdom in a while.

    Originally posted as a Categorized Answer.