On Wed, Jun 27, 2001 at 07:17:32PM -0300, Silvio Luis Leite Santana wrote:
> What would +>> do? the same as +< ? the camel-book
> says nothing, as far I've read.
> strace -eopen perl -wle 'open(FILE, "+>>test.txt")' 2>&1 | grep test
open("test.txt", O_RDWR|O_APPEND|O_CREAT, 0666) = 3
So, the file is opened for reading and writing (O_RDWR), with the position
set to the end (aka append mode, O_APPEND), and created if necessary
(O_CREAT).
strace is very useful for when you want to discover what's going on under
the hood.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--