From: Graham B. <gb...@po...> - 2000-05-26 15:56:31
|
On Fri, May 26, 2000 at 08:37:40AM -0700, Paul Heinlein wrote: > On Fri, 26 May 2000, Graham Barr wrote: > > > Now for writing we could do > > > > $dsml->open($file,"w"); > > $dsml->write($entry); > > $dsml->write($schema); > > $dsml->close; > > > > The open would write the header and the close would write the footer. > > If you passed something like an IO::File object to open(), you might gain > some flexibility if you wanted to write() to a pipe or something other > than a file. True, we can allow that. Also I don't think the "w" is really needed as open would only be used for write. Graham. |