local $/ = ''; # change this to what the marker really is open FILE, $file or die "Couldn't open '$file': $!\n"; my $header = ; close FILE;