stevensw has asked for the wisdom of the Perl Monks concerning the following question:
I know how to open a file for read and write, but I'm not sure how you actually do both to the file? In my script I basically print to a file then read what I wrote later (because I want to avoid a giant memory buffer). How to do this without having to close the close the file descriptor then reopen for read? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Both read and write to file
by zentara (Cardinal) on Aug 23, 2011 at 18:54 UTC | |
|
Re: Both read and write to file
by roboticus (Chancellor) on Aug 23, 2011 at 18:15 UTC | |
|
Re: Both read and write to file
by blue_cowdawg (Monsignor) on Aug 23, 2011 at 19:19 UTC | |
|
Re: Both read and write to file
by locked_user sundialsvc4 (Abbot) on Aug 24, 2011 at 12:35 UTC |