in reply to Re: Changing records in a text file
in thread Changing records in a text file
Is there anything I can do while the file is open in the while loop?open (DB, ">".$codes_db) || die ("Can't open $codes_db"); flock (DB, 2) || die ("Can't lock $codes_db"); foreach $line(@buffer){ print DB "$line\n"; } flock (DB, 8) || die ("Can't close $codes_db"); close (DB) || die ("Can't close $codes_db");
|
|---|