--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote:
> >>>>> "Silvio" == Silvio Luis Leite Santana <[EMAIL PROTECTED]>
> writes:
>
> Silvio> Hi all
> Silvio> The camel-book and perldoc-page says about "open":
>
> Silvio> You may also place a + in front of any of these three
> Silvio> modes to request simultaneous read and write.
> Silvio> +< is for read/write updates
> Silvio> +> clobber the file, reread only what you wrote
>
> Silvio> What would +>> do? the same as +< ? the camel-book
> Silvio> says nothing, as far I've read.
>
> No. there's always a primary mode for the open, and that isn't
> affected by the +. For <, the file must exist. For >>, every write
> is at the end of file, for >, the file is truncated. The "+" merely
> means that once the file is opened, both reading and writing are
> possible on the same handle.
Though on our machine (if I remember correctly), it won't let you write
to anywhere but the end of the file, since it's in append mode, even if
you seek to the beginning before you write. You can read from wherever
you like, but writes are always reset to the end of the file.
I thought it was odd, but I've seen crazier specs. =o)
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/