use warnings; use strict; open testFile, '>', 'delme.txt'; print testFile <; print "DATA: $.\n"; ; print "Test: $.\n"; ; ; print "Test: $.\n"; ; print "DATA: $.\n"; seek testFile, 0, 0; $. = 0; print "Test: $.\n"; ; print "DATA: $.\n"; close testFile; __DATA__ 3 1 2 5