in reply to Regex not greedy enough
# split RIGHT BEFORE a \n followed by 'record' @records = split /(?=\nrecord)/, $data; [download]