http://www.perlmonks.org?node_id=1015909


in reply to Re^3: Need Help in splitting the files
in thread Need Help in splitting the files

Hi, seems to me that tempfile.txt is used at least once instead of tempfile1.txt, therefore I suggest using filenames like tabledata.txt, indexdata.txt etc... This will make things clearer, even if you have to delete even more files afterwards.