in reply to deleting lines from file

use Tie::File;