in reply to Using OPEN to append to a file
I did acouple of test runs on small files and it worked for me, but you might want to run some test before using it as working code. Feel free to make any edits. I make no promise that this will work for you, but it worked when I ran it.#!perl use strict; use warnings; use Tie::File; my @log; my @archive; tie @log, 'Tie::File', "C:/WINDOWS/U.S. Robotics 56K Voice INT PnP.log +"; tie @archive, 'Tie::File', "H:/ppp_stats.log"; push @archive, @log; $#log = 0; pop @log; #otherwise the first line of the file #gets left there, untie @log; untie @archive;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using OPEN to append to a file
by /dev/trash (Curate) on Oct 20, 2002 at 00:46 UTC | |
by jjdraco (Scribe) on Oct 20, 2002 at 00:54 UTC | |
by /dev/trash (Curate) on Oct 20, 2002 at 02:27 UTC |