1 2 3 4 5 6
$* = 1; undef $/; $input = <>; @records = split(/^--\n/, $input); print @records + 0, "\n"; print $records[0], "\n";