"BENHAJ-ABDELLATIF,TAHIA (HP-France,ex1)" <[EMAIL PROTECTED]> writes:
> open(OUT, "+<$file") || die "cannot open $!"; > print OUT $doc->serialize(); > close (OUT) || die "Error ocFTC[code-13]: cannot close $!"; > > Well, and writing at the same document, strange lines are also written > Those lines are a part of the file. > > If I try to write in another file, nothing happens, the wanted result is > obtained. > It does not happen for other modification like adding an element. Hi, I never like overwriting files - I would always write your results first to a temporary file, and then when you are certain that things have been successfully executed, rename the file to the desired name. That way if things break, half way, you don't stomp an existing file. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
