in reply to proper way of matching multiple line patterns

If each record always starts with "Name:", you could use that as the input record separator, aka $/, and then just read the records one by one from the file...

Replies are listed 'Best First'.
Re^2: proper way of matching multiple line patterns
by mbethke (Hermit) on Dec 30, 2011 at 05:47 UTC
    I usually use Moritz's approach but that's actually a very sexy idea! Me likes.