in reply to seek and process from there on

while (<$data>) { last if /^internal name/; } while (<$data>) { # do what you want! }

PS: there's a predefined DATA filehandle. Do not clobber it. In any case I recommend you to use lexical handles. And to do error checks of course...