in reply to Re: Regex not greedy enoughin thread Regex not greedy enough
@records = split /(?=\nrecord)/, ("\n" . $data); [download]
Crude, but effective :)