use strict; use warnings; while () { print } print "--\n"; seek(DATA,0,0); while () { print } # uncomment the data block for this program to work #__DATA__ #test #test