Re: Safely updating a file

2011-11-23 Thread tshtatland
On Nov 22, 4:27 pm, carni...@gmail.com (Mark Wagner) wrote: > I want to update a status file, similar to this: > > open OUTFILE, ">", "status.txt"; > print OUTFILE "$last_date\n"; > close OUTFILE; > > However, if something goes wrong (e.g. the disk is full), this code > will replace "status.txt" wi

Re: how to make file comparision quicklier?

2008-10-11 Thread tshtatland
Why do you need a tie? Take a look at the modules: Text::Diff Algorithm::Diff or the UNIX 'diff' or 'comm' utilities for a simpler solution. HTH, Timur Shtatland On Oct 8, 3:54 am, [EMAIL PROTECTED] (Loody) wrote: > Dear all: > I try to compare 2 files line by line. > I use tie::file to save 2 f