s/\A (?:$line_regex){0, $header_lines} //x; #### chomp $whole_input; parse( $_ ) for split /\n/, $whole_input;